]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
pNFS: Fix a reference leak in _pnfs_return_layout
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 26 Jan 2017 20:50:41 +0000 (15:50 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 26 Jan 2017 20:50:41 +0000 (15:50 -0500)
commitee6625a948d2e47267ec8fd97307fdd67d0f8a5b
treeb12ad012131b8fee01e663da1cc9937e2af16851
parent406dab8450ec76eca88a1af2fc15d18a2b36ca49
pNFS: Fix a reference leak in _pnfs_return_layout

IF NFS_LAYOUT_RETURN_REQUESTED is not set, then we currently exit
without freeing the list of invalidated layout segments, leading
to a reference leak.

Reported-by: Olga Kornievskaia <aglo@umich.edu>
Fixes: 24408f5282 ("pNFS: Fix bugs in _pnfs_return_layout")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/pnfs.c