Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3410
b: refs/heads/master
c: 0933ad9
h: refs/heads/master
v: v3
  • Loading branch information
Jesper Juhl authored and Linus Torvalds committed Jun 25, 2005
1 parent 5d0e92e commit 014e8dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0159f76d9f5839c3c92bc3a91c865e94d5e489a8
refs/heads/master: 0933ad9c233b09ee5fd636525ed07c149c879980
7 changes: 4 additions & 3 deletions trunk/drivers/firmware/efivars.c
Original file line number Diff line number Diff line change
Expand Up @@ -618,8 +618,8 @@ efivar_create_sysfs_entry(unsigned long variable_name_size,
new_efivar = kmalloc(sizeof(struct efivar_entry), GFP_KERNEL);

if (!short_name || !new_efivar) {
if (short_name) kfree(short_name);
if (new_efivar) kfree(new_efivar);
kfree(short_name);
kfree(new_efivar);
return 1;
}
memset(short_name, 0, short_name_size+1);
Expand All @@ -644,7 +644,8 @@ efivar_create_sysfs_entry(unsigned long variable_name_size,
kobj_set_kset_s(new_efivar, vars_subsys);
kobject_register(&new_efivar->kobj);

kfree(short_name); short_name = NULL;
kfree(short_name);
short_name = NULL;

spin_lock(&efivars_lock);
list_add(&new_efivar->list, &efivar_list);
Expand Down

0 comments on commit 014e8dd

Please sign in to comment.