]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFS: Fix memory leaks in nfs_pageio_stop_mirroring()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 30 Mar 2020 00:06:45 +0000 (20:06 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Apr 2020 05:59:13 +0000 (07:59 +0200)
commitc08f96aeef579baecde12b9e40deaaad26b3cfac
treef284c6c7b46daf801039f2427518b6b9a7dab8cb
parentdff0fa65a0d312eb7a14ed0cfa5d981151181240
NFS: Fix memory leaks in nfs_pageio_stop_mirroring()

[ Upstream commit 862f35c94730c9270833f3ad05bd758a29f204ed ]

If we just set the mirror count to 1 without first clearing out
the mirrors, we can leak queued up requests.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/pagelist.c