Skip to content
Commit 19fa6e60 authored by Denis Kirjanov's avatar Denis Kirjanov Committed by Greg Kroah-Hartman
Browse files

tty/hvc_console: fix console lock ordering with spinlock



hvc_remove() takes a spin lock first then acquires the console
semaphore. This situation can easily lead to a deadlock scenario
where we call scheduler with spin lock held.

Signed-off-by: default avatarDenis Kirjanov <kda@linux-powerpc.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 93857edd
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