diff options
Diffstat (limited to 'kernel')
-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 98890807375b..ec3bd1f398b3 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -4305,7 +4305,7 @@ void __kprobes sub_preempt_count(int val) | |||
4305 | /* | 4305 | /* |
4306 | * Underflow? | 4306 | * Underflow? |
4307 | */ | 4307 | */ |
4308 | if (DEBUG_LOCKS_WARN_ON(val > preempt_count())) | 4308 | if (DEBUG_LOCKS_WARN_ON(val > preempt_count() - (!!kernel_locked()))) |
4309 | return; | 4309 | return; |
4310 | /* | 4310 | /* |
4311 | * Is the spinlock portion underflowing? | 4311 | * Is the spinlock portion underflowing? |