On Mon, Apr 3, 2017 at 6:30 AM, Kyle Fortin <kyle.for...@oracle.com> wrote:

>
>         for (i = 0; i < q->max; i++)
>                 kfree(q->pool[i]);
> -       kfree(q->pool);
> +       if (q->is_pool_vmalloc)

you could do something like:

if (is_vmalloc_addr(q->pool))
    vfree(...);
else
    kfree(..);

And then remove the bool.


Chetan

-- 
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-iscsi+unsubscr...@googlegroups.com.
To post to this group, send email to open-iscsi@googlegroups.com.
Visit this group at https://groups.google.com/group/open-iscsi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to