]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NFS: Fix a memory leak in nfs_do_recoalesce
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 27 Jul 2015 14:23:19 +0000 (10:23 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Aug 2015 19:21:58 +0000 (12:21 -0700)
commit13e8ae1f4da1386297c2cf65522b38f8e24fa88a
tree31e39ca0c8a79bf62a41e8fad6591e79d16dea35
parentc7231368e696a31c78e61189273999c0b5243bbf
NFS: Fix a memory leak in nfs_do_recoalesce

commit 03d5eb65b53889fe98a5ecddfe205c16e3093190 upstream.

If the function exits early, then we must put those requests that were
not processed back onto the &mirror->pg_list so they can be cleaned up
by nfs_pgio_error().

Fixes: a7d42ddb30997 ("nfs: add mirroring support to pgio layer")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/pagelist.c