]> 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)
commita13f2dd6300bf70042057c2f3dbf8ab9b6bbe4d5
treed2a9b82eda0f38418cacec7e2fe7d742fcb502b6
parent2d1041f6b2820611a1de4281b77bc71d9a8b85ab
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: 207269b5a8a8 ("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