commit | 5ae711a24601257f395c1f8746ac95be0cbd75e5 | [log] [tgz] |
---|---|---|
author | Chuck Lever <chuck.lever@oracle.com> | Wed Jan 21 11:03:19 2015 -0500 |
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | Fri Jan 30 10:47:48 2015 -0500 |
tree | b1e3c4d6d07f1c175247e66a20278ad831af8813 | |
parent | afadc468eb309b7c48ffdc8fa4c72acbb9991613 [diff] |
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 <chuck.lever@oracle.com> Reviewed-by: Steve Wise <swise@opengridcomputing.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>