summaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorJohan Hovold <johan+linaro@kernel.org>2022-12-19 12:10:04 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-18 13:58:32 +0300
commitadc96d30f6503d30dc68670c013716f1d9fcc747 (patch)
tree0074bae1abb9ed693ed8413e6a072a1bde5b2883 /include/linux/fpga/fpga-mgr.h
parenta474d4ad59cd4642d1b7e3a6c08cef9eca0992c8 (diff)
downloadlinux-adc96d30f6503d30dc68670c013716f1d9fcc747.tar.xz
efi: fix NULL-deref in init error path
[ Upstream commit 703c13fe3c9af557d312f5895ed6a5fda2711104 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions