mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Cc: [email protected] # 4.2+ Signed-off-by: Trond Myklebust <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
This commit is contained in:
parent
2f86e0919a
commit
3f807e5ae5
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue