On 9/24/2015 9:52 AM, Wengang Wang wrote:
        } else {
-               kfree(qp->sq.wrid);
-               kfree(qp->rq.wrid);
+               if (is_vmalloc_addr(qp->sq.wrid))
+                       vfree(qp->sq.wrid);
+               else
+                       kfree(qp->sq.wrid);
+
+               if (is_vmalloc_addr(qp->rq.wrid))
+                       vfree(qp->rq.wrid);
+               else
+                       kfree(qp->rq.wrid);
        }

NO

just call kvfree, see commit 914efb0 "mlx4: don't duplicate kvfree()"
--
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