Skip to contentSkip to conversation

nfs: plug rpc_task leak in layoutstats code

PATCH New Jeff Layton 1 participant 1 message Jul 9, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfs: plug rpc_task leak in layoutstats code

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

---
 fs/nfs/nfs42proc.c | 1 +
 1 file changed, 1 insertion(+)
fs/nfs/nfs42proc.c +1 -0
index f486b80f927a..dd33a249f97e 100644
@@ -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;
 }
Signature · 1 line
2.4.3