diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 6625c3c4b10d..0a4dc3b1300b 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -4327,7 +4327,7 @@ void __kprobes sub_preempt_count(int val) | |||
4327 | /* | 4327 | /* |
4328 | * Underflow? | 4328 | * Underflow? |
4329 | */ | 4329 | */ |
4330 | if (DEBUG_LOCKS_WARN_ON(val > preempt_count())) | 4330 | if (DEBUG_LOCKS_WARN_ON(val > preempt_count() - (!!kernel_locked()))) |
4331 | return; | 4331 | return; |
4332 | /* | 4332 | /* |
4333 | * Is the spinlock portion underflowing? | 4333 | * Is the spinlock portion underflowing? |