projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9cb733
)
nfs/flexfiles: fix leak of nfs4_ff_ds_version arrays
author
Weston Andros Adamson
<
[email protected]
>
Tue, 1 Aug 2017 20:25:01 +0000
(16:25 -0400)
committer
Anna Schumaker
<
[email protected]
>
Tue, 8 Aug 2017 21:18:10 +0000
(17:18 -0400)
The client was freeing the nfs4_ff_layout_ds, but not the contained
nfs4_ff_ds_version array.
Signed-off-by: Weston Andros Adamson <
[email protected]
>
Cc:
[email protected]
# v4.0+
Signed-off-by: Anna Schumaker <
[email protected]
>
fs/nfs/flexfilelayout/flexfilelayoutdev.c
patch
|
blob
|
history
diff --git
a/fs/nfs/flexfilelayout/flexfilelayoutdev.c
b/fs/nfs/flexfilelayout/flexfilelayoutdev.c
index 6df7a0cf566015378aa3f76c480115675454297d..f32c58bbe55671cb75abdcb9934152d110e3537d 100644
(file)
--- 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);
}