Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1489146 > unrolled thread

[PATCH 4.4 014/118] NFSv4.x: Fix a refcount leak in nfs_callback_up_net

Started byGreg Kroah-Hartman <gregkh@linuxfoundation.org>
First post2016-09-22 19:40 +0200
Last post2016-09-22 19:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 4.4 014/118] NFSv4.x: Fix a refcount leak in nfs_callback_up_net Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2016-09-22 19:40 +0200

#1489146 — [PATCH 4.4 014/118] NFSv4.x: Fix a refcount leak in nfs_callback_up_net

FromGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Date2016-09-22 19:40 +0200
Subject[PATCH 4.4 014/118] NFSv4.x: Fix a refcount leak in nfs_callback_up_net
Message-ID<skg8z-Rq-91@gated-at.bofh.it>
4.4-stable review patch.  If anyone has any objections, please let me know.

------------------

From: Trond Myklebust <trond.myklebust@primarydata.com>

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 |    1 +
 1 file changed, 1 insertion(+)

--- a/fs/nfs/callback.c
+++ b/fs/nfs/callback.c
@@ -275,6 +275,7 @@ static int nfs_callback_up_net(int minor
 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;

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web