Skip to content
Commit 566a2d6d authored by Yang Yingliang's avatar Yang Yingliang Committed by Geert Uytterhoeven
Browse files

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: 05d51e42 ("m68k: Introduce a virtual m68k machine")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarLaurent Vivier <laurent@vivier.eu>
Link: https://lore.kernel.org/r/20220628084903.3147123-1-yangyingliang@huawei.com


Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent a1ee38ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment