diff options
author | Weston Andros Adamson <dros@monkey.org> | 2017-08-01 16:25:01 -0400 |
---|---|---|
committer | Sasha Levin <alexander.levin@verizon.com> | 2017-09-10 16:36:10 -0400 |
commit | cc4ed9e87ca26cf12685ce31225c5589b636f272 (patch) | |
tree | 3a0197ac61144015b2335bdb65d4aef1aac527fd | |
parent | 8c0887766aeb78a954c2c695459cbe1a011de3f6 (diff) |
nfs/flexfiles: fix leak of nfs4_ff_ds_version arrays
[ Upstream commit 1feb26162bee7b2f110facfec71b5c7bdbc7d14d ]
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>
Cc: stable@vger.kernel.org # v4.0+
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
-rw-r--r-- | fs/nfs/flexfilelayout/flexfilelayoutdev.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/flexfilelayout/flexfilelayoutdev.c b/fs/nfs/flexfilelayout/flexfilelayoutdev.c index b28fa4cbea52..a84dd247b13a 100644 --- a/fs/nfs/flexfilelayout/flexfilelayoutdev.c +++ b/fs/nfs/flexfilelayout/flexfilelayoutdev.c @@ -30,6 +30,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); } |