Skip to content
Commit b68f2fb9 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds
Browse files

tty: Fix a USB serial crash/scribble



The port lock is used to protect the port state. However the port structure
is freed on a hangup, then the lock taken on a close. The right fix is to
drop the port on tty->shutdown() but we can't yet do that due to sleep v
non-sleeping rules. Instead do the next best thing and fix it up when we are
not in -rc season.

Reported-by: default avatarDaniel Mack <daniel@caiaq.de>
Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Tested-by: default avatarDaniel Mack <daniel@caiaq.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 6a31d4ae
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