> -    kfree(cq->sw_queue);
 > +    if (cq->sw_queue)
 > +            kfree(cq->sw_queue);

Looks like cq->sw_queue will be set to NULL when it's not allocated (ie
the userspace case).  So that's OK.

But kfree(NULL) is fine.  So you can drop this hunk I think.

 - R.
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to