projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab8cf65
)
NFSv4.x: Fix a refcount leak in nfs_callback_up_net
author
Trond Myklebust
<trond.myklebust@primarydata.com>
Mon, 29 Aug 2016 15:15:36 +0000
(11:15 -0400)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 24 Sep 2016 08:07:36 +0000
(10:07 +0200)
commit
98b0f80c2396224bbbed81792b526e6c72ba9efa
upstream.
On error, the callers expect us to return without bumping
nn->cb_users[].
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/callback.c
patch
|
blob
|
history
diff --git
a/fs/nfs/callback.c
b/fs/nfs/callback.c
index a7f2e6e3330525c1069c524f8b56960e780f7f4b..52a28311e2a4b2d72063cf36ac9e4296481211b7 100644
(file)
--- a/
fs/nfs/callback.c
+++ b/
fs/nfs/callback.c
@@
-275,6
+275,7
@@
static int nfs_callback_up_net(int minorversion, struct svc_serv *serv,
err_socks:
svc_rpcb_cleanup(serv, net);
err_bind:
+ nn->cb_users[minorversion]--;
dprintk("NFS: Couldn't create callback socket: err = %d; "
"net = %p\n", ret, net);
return ret;