]> 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>
Thu, 23 Apr 2020 08:30:21 +0000 (10:30 +0200)
commitb38f7532eb1549a43bcc8dfd6c197adccfa84a00
tree5be8de994334eed66397f2be2b60b2216fc992bd
parent044a884072b4313554d910b792f46c3e1f0099a5
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