Commit 791bafe4 authored by Jeff Layton's avatar Jeff Layton Committed by Luis Henriques

NFSv4.2: Fix a reference leak in nfs42_proc_layoutstats_generic

BugLink: http://bugs.launchpad.net/bugs/1637510

commit 3f807e5a upstream.

The caller of rpc_run_task also gets a reference that must be put.
Signed-off-by: default avatarJeff Layton <jeff.layton@primarydata.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarTim Gardner <tim.gardner@canonical.com>
parent 8bbd8c6e
...@@ -269,6 +269,7 @@ int nfs42_proc_layoutstats_generic(struct nfs_server *server, ...@@ -269,6 +269,7 @@ int nfs42_proc_layoutstats_generic(struct nfs_server *server,
task = rpc_run_task(&task_setup); task = rpc_run_task(&task_setup);
if (IS_ERR(task)) if (IS_ERR(task))
return PTR_ERR(task); return PTR_ERR(task);
rpc_put_task(task);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment