aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firmware/efivars.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firmware/efivars.c')
-rw-r--r--drivers/firmware/efivars.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c
index b61a72fb6219..f4f709d1370b 100644
--- a/drivers/firmware/efivars.c
+++ b/drivers/firmware/efivars.c
@@ -397,7 +397,7 @@ static struct kobj_type efivar_ktype = {
397static inline void 397static inline void
398efivar_unregister(struct efivar_entry *var) 398efivar_unregister(struct efivar_entry *var)
399{ 399{
400 kobject_unregister(&var->kobj); 400 kobject_put(&var->kobj);
401} 401}
402 402
403 403
@@ -732,7 +732,7 @@ efivars_init(void)
732 kset_unregister(vars_kset); 732 kset_unregister(vars_kset);
733 733
734out_firmware_unregister: 734out_firmware_unregister:
735 kobject_unregister(efi_kobj); 735 kobject_put(efi_kobj);
736 736
737out_free: 737out_free:
738 kfree(variable_name); 738 kfree(variable_name);
@@ -753,7 +753,7 @@ efivars_exit(void)
753 } 753 }
754 754
755 kset_unregister(vars_kset); 755 kset_unregister(vars_kset);
756 kobject_unregister(efi_kobj); 756 kobject_put(efi_kobj);
757} 757}
758 758
759module_init(efivars_init); 759module_init(efivars_init);