From: Alan Cox Date: Mon, 27 Jul 2009 09:58:08 +0000 (+0100) Subject: tty: Fix a USB serial crash/scribble X-Git-Tag: v2.6.31-rc5~85 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b68f2fb9e73f46037fbeca5fbd4ae8a7ddd8ef6b;p=pandora-kernel.git 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: Daniel Mack Signed-off-by: Alan Cox Tested-by: Daniel Mack Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed