Skip to content

Commit 1feb261

Browse files
westonandrosadamsonamschuma-ntap
authored andcommitted
nfs/flexfiles: fix leak of nfs4_ff_ds_version arrays
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>
1 parent d9cb733 commit 1feb261

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/nfs/flexfilelayout/flexfilelayoutdev.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ void nfs4_ff_layout_free_deviceid(struct nfs4_ff_layout_ds *mirror_ds)
3232
{
3333
nfs4_print_deviceid(&mirror_ds->id_node.deviceid);
3434
nfs4_pnfs_ds_put(mirror_ds->ds);
35+
kfree(mirror_ds->ds_versions);
3536
kfree_rcu(mirror_ds, id_node.rcu);
3637
}
3738

0 commit comments

Comments
 (0)