summaryrefslogtreecommitdiffstats
path: root/kernel/debug
diff options
context:
space:
mode:
authorJohan Hovold <johan+linaro@kernel.org>2022-12-19 10:10:04 +0100
committerArd Biesheuvel <ardb@kernel.org>2023-01-03 10:52:15 +0100
commit703c13fe3c9af557d312f5895ed6a5fda2711104 (patch)
treed160ac839ccc9d17d8e259b7ffae4ea3438789f4 /kernel/debug
parent88603b6dc419445847923fcb7fe5080067a30f98 (diff)
downloadlinux-703c13fe3c9af557d312f5895ed6a5fda2711104.tar.bz2
efi: fix NULL-deref in init error path
In cases where runtime services are not supported or have been disabled, the runtime services workqueue will never have been allocated. Do not try to destroy the workqueue unconditionally in the unlikely event that EFI initialisation fails to avoid dereferencing a NULL pointer. Fixes: 98086df8b70c ("efi: add missed destroy_workqueue when efisubsys_init fails") Cc: stable@vger.kernel.org Cc: Li Heng <liheng40@huawei.com> Signed-off-by: Johan Hovold <johan+linaro@kernel.org> Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'kernel/debug')
0 files changed, 0 insertions, 0 deletions