m68k: virt: Fix missing platform_device_unregister() on error in virt_platform_init()
Add the missing platform_device_unregister() before return from virt_platform_init() in the error handling case.
m68k: virt: Fix missing platform_device_unregister() on error in virt_platform_init()
Add the missing platform_device_unregister() before return from virt_platform_init() in the error handling case.
Fixes: 05d51e42df06 ("m68k: Introduce a virtual m68k machine") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Link: https://lore.kernel.org/r/20220628084903.3147123-1-yangyingliang@huawei.com Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
show more ...
|