mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
nfs/flexfiles: fix leak of nfs4_ff_ds_version arrays
commit 1feb26162b 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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
8d189f6040
commit
1cc5cd5b97
@@ -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_print_deviceid(&mirror_ds->id_node.deviceid);
|
||||||
nfs4_pnfs_ds_put(mirror_ds->ds);
|
nfs4_pnfs_ds_put(mirror_ds->ds);
|
||||||
|
kfree(mirror_ds->ds_versions);
|
||||||
kfree_rcu(mirror_ds, id_node.rcu);
|
kfree_rcu(mirror_ds, id_node.rcu);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user