[PATCH] bus: sunxi-rsb: Fix error handling in sunxi_rsb_init()
Jernej Škrabec
jernej.skrabec at gmail.com
Sun Jan 8 12:35:36 PST 2023
Dne sreda, 23. november 2022 ob 10:42:00 CET je Yuan Can napisal(a):
> 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 <yuancan at huawei.com>
Applied, thanks!
Best regards,
Jernej
More information about the linux-arm-kernel
mailing list