|
|
@@ -94,6 +94,9 @@ static bool on_sdei_normal_stack(unsigned long sp, struct stack_info *info)
|
|
|
unsigned long low = (unsigned long)raw_cpu_read(sdei_stack_normal_ptr);
|
|
|
unsigned long high = low + SDEI_STACK_SIZE;
|
|
|
|
|
|
+ if (!low)
|
|
|
+ return false;
|
|
|
+
|
|
|
if (sp < low || sp >= high)
|
|
|
return false;
|
|
|
|
|
|
@@ -111,6 +114,9 @@ static bool on_sdei_critical_stack(unsigned long sp, struct stack_info *info)
|
|
|
unsigned long low = (unsigned long)raw_cpu_read(sdei_stack_critical_ptr);
|
|
|
unsigned long high = low + SDEI_STACK_SIZE;
|
|
|
|
|
|
+ if (!low)
|
|
|
+ return false;
|
|
|
+
|
|
|
if (sp < low || sp >= high)
|
|
|
return false;
|
|
|
|