diff --git a/kernel/scs.c b/kernel/scs.c index 222a7a9ad5439a4b9a974a636072a4f21e0578f5..5d4d9bbdec36c9f8f3dd5450ff3f5704b3ee40b7 100644 --- a/kernel/scs.c +++ b/kernel/scs.c @@ -74,7 +74,7 @@ static void scs_check_usage(struct task_struct *tsk) for (p = task_scs(tsk); p < __scs_magic(tsk); ++p) { if (!READ_ONCE_NOCHECK(*p)) break; - used++; + used += sizeof(*p); } while (used > curr) {