linux-yocto/drivers/firmware/google
Yuan Can 945c76cad8 firmware: google: Unregister driver_info on failure
[ Upstream commit 32b0901e14 ]

When platform_device_register_full() returns error, the gsmi_init() returns
without unregister gsmi_driver_info, fix by add missing
platform_driver_unregister() when platform_device_register_full() failed.

Fixes: 8942b2d509 ("gsmi: Add GSMI commands to log S0ix info")
Signed-off-by: Yuan Can <yuancan@huawei.com>
Acked-by: Brian Norris <briannorris@chromium.org>
Link: https://lore.kernel.org/r/20241015131344.20272-1-yuancan@huawei.com
Signed-off-by: Tzung-Bi Shih <tzungbi@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-14 19:50:44 +01:00
..
coreboot_table.c firmware: coreboot: Check size of table entry and use flex-array 2023-02-01 08:27:19 +01:00
coreboot_table.h firmware: coreboot: Check size of table entry and use flex-array 2023-02-01 08:27:19 +01:00
framebuffer-coreboot.c firmware: coreboot: framebuffer: Ignore reserved pixel color bits 2023-03-10 09:39:55 +01:00
gsmi.c firmware: google: Unregister driver_info on failure 2024-12-14 19:50:44 +01:00
Kconfig
Makefile
memconsole-coreboot.c
memconsole-x86-legacy.c
memconsole.c
memconsole.h
vpd_decode.c
vpd_decode.h
vpd.c