public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nfs: plug rpc_task leak in layoutstats code
@ 2015-07-09 16:20 Jeff Layton
  0 siblings, 0 replies; only message in thread
From: Jeff Layton @ 2015-07-09 16:20 UTC (permalink / raw)
  To: trond.myklebust; +Cc: linux-nfs, meir.leopold

The caller of rpc_run_task also gets a reference that must be put.

Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
---
 fs/nfs/nfs42proc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/nfs/nfs42proc.c b/fs/nfs/nfs42proc.c
index f486b80f927a..dd33a249f97e 100644
--- a/fs/nfs/nfs42proc.c
+++ b/fs/nfs/nfs42proc.c
@@ -250,5 +250,6 @@ int nfs42_proc_layoutstats_generic(struct nfs_server *server,
 	task = rpc_run_task(&task_setup);
 	if (IS_ERR(task))
 		return PTR_ERR(task);
+	rpc_put_task(task);
 	return 0;
 }
-- 
2.4.3


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-09 16:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-09 16:20 [PATCH] nfs: plug rpc_task leak in layoutstats code Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox