|
@@ -31,7 +31,7 @@ int notrace unwind_frame(struct stackframe *frame)
|
|
high = ALIGN(low, THREAD_SIZE);
|
|
high = ALIGN(low, THREAD_SIZE);
|
|
|
|
|
|
/* check current frame pointer is within bounds */
|
|
/* check current frame pointer is within bounds */
|
|
- if (fp < (low + 12) || fp + 4 >= high)
|
|
|
|
|
|
+ if (fp < low + 12 || fp > high - 4)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
/* restore the registers from the stack frame */
|
|
/* restore the registers from the stack frame */
|