From: Chuck Lever Date: Wed, 21 Jan 2015 16:03:19 +0000 (-0500) Subject: xprtrdma: Free the pd if ib_query_qp() fails X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~120^2~28^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ae711a24601257f395c1f8746ac95be0cbd75e5;p=pandora-kernel.git xprtrdma: Free the pd if ib_query_qp() fails If ib_query_qp() fails or the memory registration mode isn't supported, don't leak the PD. An orphaned IB/core resource will cause IB module removal to hang. Fixes: bd7ed1d13304 ("RPC/RDMA: check selected memory registration ...") Signed-off-by: Chuck Lever Reviewed-by: Steve Wise Signed-off-by: Anna Schumaker --- Reading git-diff-tree failed