nfs: plug rpc_task leak in layoutstats code
Subsystems (2)
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.
Signed-off-by Jeff Layton <[email protected]>
--- fs/nfs/nfs42proc.c | 1 + 1 file changed, 1 insertion(+)
fs/nfs/nfs42proc.c +1 -0
@@ -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