Commit 189dbab0 authored by Linus Torvalds's avatar Linus Torvalds

Merge branch 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull lockdep fix from Ingo Molnar:
 "Fix a possible NULL dereference for the (rare) case when a task
  doesn't have ->xhlocks space allocated due to kmalloc() OOM-ing"

* 'locking-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
  locking/lockdep: Fix possible NULL deref
parents 61d6be3a 5e351ad1
...@@ -4790,6 +4790,7 @@ void lockdep_invariant_state(bool force) ...@@ -4790,6 +4790,7 @@ void lockdep_invariant_state(bool force)
* Verify the former, enforce the latter. * Verify the former, enforce the latter.
*/ */
WARN_ON_ONCE(!force && current->lockdep_depth); WARN_ON_ONCE(!force && current->lockdep_depth);
if (current->xhlocks)
invalidate_xhlock(&xhlock(current->xhlock_idx)); invalidate_xhlock(&xhlock(current->xhlock_idx));
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment