]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dma-debug: avoid spinlock recursion when disabling dma-debug
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 26 May 2016 22:16:25 +0000 (15:16 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 22 Aug 2016 21:38:05 +0000 (22:38 +0100)
commita86f55da2b8dc301d14a64b18f43c93ef97066f0
tree1fcb5169816a54749df3a51ad5b84a3432fb0d78
parent78d246457999e955c7d27f991401a17e975d63d6
dma-debug: avoid spinlock recursion when disabling dma-debug

commit 3017cd63f26fc655d56875aaf497153ba60e9edf upstream.

With netconsole (at least) the pr_err("...  disablingn") call can
recurse back into the dma-debug code, where it'll try to grab
free_entries_lock again.  Avoid the problem by doing the printk after
dropping the lock.

Link: http://lkml.kernel.org/r/1463678421-18683-1-git-send-email-ville.syrjala@linux.intel.com
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
lib/dma-debug.c