]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Fix a page leak in nfs_destroy_unlinked_subrequests()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 1 Apr 2020 14:07:16 +0000 (10:07 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 1 Apr 2020 14:11:22 +0000 (10:11 -0400)
commitade609a3f127129b5e31bf06ffa422da695e32b2
treed2a9b82eda0f38418cacec7e2fe7d742fcb502b6
parente46317d83d15791c6e16dd613c3893a8216be483
NFS: Fix a page leak in nfs_destroy_unlinked_subrequests()

When we detach a subrequest from the list, we must also release the
reference it holds to the parent.

Fixes: 2edafd787a4c ("NFS: Fix nfs_page_group_destroy() and nfs_lock_and_join_requests() race cases")
Cc: stable@vger.kernel.org # v4.14+
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/write.c