summaryrefslogtreecommitdiff
path: root/net/sunrpc/stats.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2015-01-21 19:03:19 +0300
committerZefan Li <lizefan@huawei.com>2015-06-19 06:40:13 +0300
commitb13026256c16200b53d251ab27f610712407721f (patch)
tree7fceaa736cc5ed390b5cbeef5a24d38444bfcc8e /net/sunrpc/stats.c
parent16d67beba92a80d8c766834ea01cdd040d9ff6df (diff)
downloadlinux-b13026256c16200b53d251ab27f610712407721f.tar.xz
xprtrdma: Free the pd if ib_query_qp() fails
commit 5ae711a24601257f395c1f8746ac95be0cbd75e5 upstream. 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> [lizf: Backported to 3.4: only two goto statements need to be changed] Signed-off-by: Zefan Li <lizefan@huawei.com>
Diffstat (limited to 'net/sunrpc/stats.c')
0 files changed, 0 insertions, 0 deletions