diff options
author | Jeff Layton <jlayton@poochiereds.net> | 2016-10-04 06:07:43 +0200 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2016-10-04 22:30:54 +0200 |
commit | 3f807e5ae5597bd65a6fff684083e8eaa21f3fa7 (patch) | |
tree | 92d27f542b06d656399b6aae1fb016f33997bf9d | |
parent | fs: nfs: Make nfs boot time y2038 safe (diff) | |
download | linux-3f807e5ae5597bd65a6fff684083e8eaa21f3fa7.tar.xz linux-3f807e5ae5597bd65a6fff684083e8eaa21f3fa7.zip |
NFSv4.2: Fix a reference leak in nfs42_proc_layoutstats_generic
The caller of rpc_run_task also gets a reference that must be put.
Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Cc: stable@vger.kernel.org # 4.2+
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
-rw-r--r-- | fs/nfs/nfs42proc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/nfs42proc.c b/fs/nfs/nfs42proc.c index 64b43b4ad9dd..608501971fe0 100644 --- a/fs/nfs/nfs42proc.c +++ b/fs/nfs/nfs42proc.c @@ -443,6 +443,7 @@ 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; } |