Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jeff Layton and committed by
Anna Schumaker
3f807e5a 2f86e091

+1
+1
fs/nfs/nfs42proc.c
··· 443 443 task = rpc_run_task(&task_setup); 444 444 if (IS_ERR(task)) 445 445 return PTR_ERR(task); 446 + rpc_put_task(task); 446 447 return 0; 447 448 } 448 449