hv: replace 'return' with 'panic' in bsp_boot_post
If hardware_detect_support() failed,as it return to
bsp_boot_init with a different stack and thus returning
from bsp_boot_init becomes an undefined behavior.
Acked-by: Eddie Dong
@@ -461,8 +461,7 @@ static void bsp_boot_post(void)
pr_dbg("Core %hu is up", BOOT_CPU_ID);
if (hardware_detect_support() != 0) {
- pr_fatal("hardware not support!\n");
- return;
+ panic("hardware not support!");
}
/* Warn for security feature not ready */
