projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f86e09
)
NFSv4.2: Fix a reference leak in nfs42_proc_layoutstats_generic
author
Jeff Layton
<jlayton@poochiereds.net>
Tue, 4 Oct 2016 04:07:43 +0000
(
00:07
-0400)
committer
Anna Schumaker
<Anna.Schumaker@Netapp.com>
Tue, 4 Oct 2016 20:30:54 +0000
(16:30 -0400)
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>
fs/nfs/nfs42proc.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfs/nfs42proc.c
b/fs/nfs/nfs42proc.c
index 64b43b4ad9dd8841cbfc41e86c046f89e7c4c46d..608501971fe06f2fce96044ab995071a098abc66 100644
(file)
--- 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;
}