projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8502eb
)
efi: add missed destroy_workqueue when efisubsys_init fails
author
Li Heng
<liheng40@huawei.com>
Mon, 20 Jul 2020 07:22:18 +0000
(15:22 +0800)
committer
Ard Biesheuvel
<ardb@kernel.org>
Thu, 20 Aug 2020 09:18:45 +0000
(11:18 +0200)
destroy_workqueue() should be called to destroy efi_rts_wq
when efisubsys_init() init resources fails.
Cc: <stable@vger.kernel.org>
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Li Heng <liheng40@huawei.com>
Link:
https://lore.kernel.org/r/1595229738-10087-1-git-send-email-liheng40@huawei.com
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/efi.c
patch
|
blob
|
history
diff --git
a/drivers/firmware/efi/efi.c
b/drivers/firmware/efi/efi.c
index
fdd1db0
..
3aa07c3
100644
(file)
--- a/
drivers/firmware/efi/efi.c
+++ b/
drivers/firmware/efi/efi.c
@@
-381,6
+381,7
@@
static int __init efisubsys_init(void)
efi_kobj = kobject_create_and_add("efi", firmware_kobj);
if (!efi_kobj) {
pr_err("efi: Firmware registration failed.\n");
+ destroy_workqueue(efi_rts_wq);
return -ENOMEM;
}
@@
-424,6
+425,7
@@
err_unregister:
generic_ops_unregister();
err_put:
kobject_put(efi_kobj);
+ destroy_workqueue(efi_rts_wq);
return error;
}