aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firmware/efi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firmware/efi')
-rw-r--r--drivers/firmware/efi/efivars.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/firmware/efi/efivars.c b/drivers/firmware/efi/efivars.c
index f8f5e5d9e020..5e94897244cf 100644
--- a/drivers/firmware/efi/efivars.c
+++ b/drivers/firmware/efi/efivars.c
@@ -419,10 +419,8 @@ efivar_create_sysfs_entry(struct efivar_entry *new_var)
419 419
420 short_name = kzalloc(short_name_size, GFP_KERNEL); 420 short_name = kzalloc(short_name_size, GFP_KERNEL);
421 421
422 if (!short_name) { 422 if (!short_name)
423 kfree(short_name);
424 return 1; 423 return 1;
425 }
426 424
427 /* Convert Unicode to normal chars (assume top bits are 0), 425 /* Convert Unicode to normal chars (assume top bits are 0),
428 ala UTF-8 */ 426 ala UTF-8 */