Skip to content
Commit f4ab7818 authored by Johannes Berg's avatar Johannes Berg Committed by Richard Weinberger
Browse files

um: line: Don't free winch (with IRQ) under spinlock



Lockdep correctly complains that one shouldn't call um_free_irq()
with free_irq() inside under a spinlock since that will attempt
to acquire a mutex.

Rearrange the code to keep the list manipulations under the lock
while moving the actual freeing outside of it, to avoid this.

In particular, this removes the lockdep complaint at shutdown that
I was seeing with lockdep enabled.

Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Acked-By: default avatar <anton.ivanov@cambridgegreys.com>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent fc6b6a87
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment