From: Eli Cohen Date: Tue, 14 Jan 2014 15:45:21 +0000 (+0200) Subject: IB/mlx5: Allow creation of QPs with zero-length work queues X-Git-Tag: v3.14-rc1~103^2~1^7~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e9c47d07d447e09a66ee528c3ebad9ba359af6a;p=pandora-kernel.git IB/mlx5: Allow creation of QPs with zero-length work queues The current code attmepts to call ib_umem_get() even if the length is zero, which causes a failure. Since the spec allows zero length work queues, change the code so we don't call ib_umem_get() in those cases. Signed-off-by: Eli Cohen Signed-off-by: Roland Dreier --- Reading git-diff-tree failed