]> git.baikalelectronics.ru Git - kernel.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:36:38 +0000 (10:36 +0200)
commit6e92c04cc3a975e00eaf1141e39026641517d6a8
treea51df8a8bbcae77568c5a37ef1138b3ef1c18754
parent864bf2ac25eaf586591e80ecc35ce036bda37122
NFS: Fix memory leaks in nfs_pageio_stop_mirroring()

[ Upstream commit 0f994cbd7d5d94943d2f7b852231698321483959 ]

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