All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nfs/flexfiles: fix leak of nfs4_ff_ds_version arrays
@ 2017-08-01 20:25 Weston Andros Adamson
  2017-08-03  2:07 ` Weston Andros Adamson
  0 siblings, 1 reply; 4+ messages in thread
From: Weston Andros Adamson @ 2017-08-01 20:25 UTC (permalink / raw)
  To: trond.myklebust, anna.schumaker; +Cc: linux-nfs, Weston Andros Adamson

The client was freeing the nfs4_ff_layout_ds, but not the contained
nfs4_ff_ds_version array.

Signed-off-by: Weston Andros Adamson <dros@primarydata.com>
---
 fs/nfs/flexfilelayout/flexfilelayoutdev.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/nfs/flexfilelayout/flexfilelayoutdev.c b/fs/nfs/flexfilelayout/flexfilelayoutdev.c
index 6df7a0cf5660..f32c58bbe556 100644
--- a/fs/nfs/flexfilelayout/flexfilelayoutdev.c
+++ b/fs/nfs/flexfilelayout/flexfilelayoutdev.c
@@ -32,6 +32,7 @@ void nfs4_ff_layout_free_deviceid(struct nfs4_ff_layout_ds *mirror_ds)
 {
 	nfs4_print_deviceid(&mirror_ds->id_node.deviceid);
 	nfs4_pnfs_ds_put(mirror_ds->ds);
+	kfree(mirror_ds->ds_versions);
 	kfree_rcu(mirror_ds, id_node.rcu);
 }
 
-- 
2.11.0 (Apple Git-81)


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-08-11 14:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-01 20:25 [PATCH] nfs/flexfiles: fix leak of nfs4_ff_ds_version arrays Weston Andros Adamson
2017-08-03  2:07 ` Weston Andros Adamson
2017-08-03 12:57   ` Mkrtchyan, Tigran
2017-08-11 14:18     ` Weston Andros Adamson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.