mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-13 13:56:19 +00:00
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. Tracked-On: #861 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
parent
bad8d81ab6
commit
1b334ec08f
@ -461,8 +461,7 @@ static void bsp_boot_post(void)
|
|||||||
pr_dbg("Core %hu is up", BOOT_CPU_ID);
|
pr_dbg("Core %hu is up", BOOT_CPU_ID);
|
||||||
|
|
||||||
if (hardware_detect_support() != 0) {
|
if (hardware_detect_support() != 0) {
|
||||||
pr_fatal("hardware not support!\n");
|
panic("hardware not support!");
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Warn for security feature not ready */
|
/* Warn for security feature not ready */
|
||||||
|
Loading…
Reference in New Issue
Block a user