Skip to content

Commit bba5952

Browse files
committed
Merge branch 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'core-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: lockdep: fix spurious 'inconsistent lock state' warning
2 parents 04cde03 + 6951b12 commit bba5952

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/lockdep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2582,7 +2582,7 @@ static int __lock_acquire(struct lockdep_map *lock, unsigned int subclass,
25822582
hlock->trylock = trylock;
25832583
hlock->read = read;
25842584
hlock->check = check;
2585-
hlock->hardirqs_off = hardirqs_off;
2585+
hlock->hardirqs_off = !!hardirqs_off;
25862586
#ifdef CONFIG_LOCK_STAT
25872587
hlock->waittime_stamp = 0;
25882588
hlock->holdtime_stamp = sched_clock();

0 commit comments

Comments
 (0)