Skip to content

Commit

Permalink
NFSv4.2: Fix a reference leak in nfs42_proc_layoutstats_generic
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
jtlayton authored and amschuma-ntap committed Oct 4, 2016
1 parent 2f86e09 commit 3f807e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/nfs/nfs42proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3f807e5

Please sign in to comment.