summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorYuan Can <yuancan@huawei.com>2024-10-15 21:13:44 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-05 14:01:16 +0100
commit8d8404774465e9b2ea201121b9bfc81606feb5aa (patch)
treeea3c683ef85c47311f047fc001a1fdc7674a4bec /samples
parent700852528fc5295897d6089eea0656d67f9b9d88 (diff)
downloadlinux-8d8404774465e9b2ea201121b9bfc81606feb5aa.tar.gz
linux-8d8404774465e9b2ea201121b9bfc81606feb5aa.tar.bz2
linux-8d8404774465e9b2ea201121b9bfc81606feb5aa.zip
firmware: google: Unregister driver_info on failure
[ Upstream commit 32b0901e141f6d4cf49d820b53eb09b88b1f72f7 ] 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: 8942b2d5094b ("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>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions