diff options
author | Andy Whitcroft <apw@canonical.com> | 2012-10-10 16:21:44 +0100 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2012-11-14 18:19:44 -0700 |
commit | 691d064949dee5b08e38cc95be50f3c9893eaad5 (patch) | |
tree | 7972a32211916e3966f880c4b5aeb9da44564dc6 | |
parent | e4e5c871ea1cb9d8144c1dbf9b6ba7567f9ea6fc (diff) |
UBUNTU: SAUCE: efivarfs: efivarfs_fill_super() ensure we free our temporary name
BugLink: http://bugs.launchpad.net/bugs/1063061
d_alloc_name() copies the passed name to new storage, once complete we
no longer need our name.
Acked-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
-rw-r--r-- | drivers/firmware/efivars.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c index bf453522a6f..b5599b5ef9f 100644 --- a/drivers/firmware/efivars.c +++ b/drivers/firmware/efivars.c @@ -992,6 +992,8 @@ int efivarfs_fill_super(struct super_block *sb, void *data, int silent) inode = efivarfs_get_inode(efivarfs_sb, root->d_inode, S_IFREG | 0644, 0); dentry = d_alloc_name(root, name); + /* copied by the above to local storage in the dentry. */ + kfree(name); efivars->ops->get_variable(entry->var.VariableName, &entry->var.VendorGuid, |