summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorYuan Can <yuancan@huawei.com>2022-11-24 11:33:32 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-07 12:07:27 +0100
commit7f43b9a984830f3b8273458070d6020d48d38d84 (patch)
treee2ffb41321a95ae74e801d96f906f91a2df52b9c /include/uapi/linux
parent29a57277803d19407846fa923e87136a39efbbe9 (diff)
HSI: omap_ssi_core: Fix error handling in ssi_init()
[ Upstream commit 3ffa9f713c39a213a08d9ff13ab983a8aa5d8b5d ] The ssi_init() returns the platform_driver_register() directly without checking its return value, if platform_driver_register() failed, the ssi_pdriver is not unregistered. Fix by unregister ssi_pdriver when the last platform_driver_register() failed. Fixes: 0fae198988b8 ("HSI: omap_ssi: built omap_ssi and omap_ssi_port into one module") Signed-off-by: Yuan Can <yuancan@huawei.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/uapi/linux')
0 files changed, 0 insertions, 0 deletions