aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorYuan Can <[email protected]>2022-11-23 09:42:00 +0000
committerJernej Skrabec <[email protected]>2023-01-08 21:35:01 +0100
commitf71eaf2708be7831428eacae7db25d8ec6b8b4c5 (patch)
tree08f0eb042be5d5d8cd47be44148d49fba7105d30 /tools/perf/scripts/python
parent1b929c02afd37871d5afb9d498426f83432e71c2 (diff)
bus: sunxi-rsb: Fix error handling in sunxi_rsb_init()
The sunxi_rsb_init() returns the platform_driver_register() directly without checking its return value, if platform_driver_register() failed, the sunxi_rsb_bus is not unregistered. Fix by unregister sunxi_rsb_bus when platform_driver_register() failed. Fixes: d787dcdb9c8f ("bus: sunxi-rsb: Add driver for Allwinner Reduced Serial Bus") Signed-off-by: Yuan Can <[email protected]> Reviewed-by: Jernej Skrabec <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jernej Skrabec <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions