|
@@ -157,14 +157,14 @@ static int efivarfs_callback(efi_char16_t *name16, efi_guid_t vendor,
|
|
goto fail_inode;
|
|
goto fail_inode;
|
|
}
|
|
}
|
|
|
|
|
|
- /* copied by the above to local storage in the dentry. */
|
|
|
|
- kfree(name);
|
|
|
|
-
|
|
|
|
efivar_entry_size(entry, &size);
|
|
efivar_entry_size(entry, &size);
|
|
err = efivar_entry_add(entry, &efivarfs_list);
|
|
err = efivar_entry_add(entry, &efivarfs_list);
|
|
if (err)
|
|
if (err)
|
|
goto fail_inode;
|
|
goto fail_inode;
|
|
|
|
|
|
|
|
+ /* copied by the above to local storage in the dentry. */
|
|
|
|
+ kfree(name);
|
|
|
|
+
|
|
inode_lock(inode);
|
|
inode_lock(inode);
|
|
inode->i_private = entry;
|
|
inode->i_private = entry;
|
|
i_size_write(inode, size + sizeof(entry->var.Attributes));
|
|
i_size_write(inode, size + sizeof(entry->var.Attributes));
|