Skip to content

Commit a89843a

Browse files
westonandrosadamsongregkh
authored andcommitted
nfs/flexfiles: fix leak of nfs4_ff_ds_version arrays
commit 1feb26162bee7b2f110facfec71b5c7bdbc7d14d upstream. 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> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 7271d13 commit a89843a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/nfs/flexfilelayout/flexfilelayoutdev.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ void nfs4_ff_layout_free_deviceid(struct nfs4_ff_layout_ds *mirror_ds)
3030
{
3131
nfs4_print_deviceid(&mirror_ds->id_node.deviceid);
3232
nfs4_pnfs_ds_put(mirror_ds->ds);
33+
kfree(mirror_ds->ds_versions);
3334
kfree_rcu(mirror_ds, id_node.rcu);
3435
}
3536

0 commit comments

Comments
 (0)