From: Alan Cox Date: Sat, 19 Sep 2009 20:13:23 +0000 (-0700) Subject: tty: USB hangup is racy X-Git-Tag: v2.6.32-rc1~627^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2b391822a11302add9e46476f3da4e18e6de84c;p=pandora-kernel.git tty: USB hangup is racy The USB layer uses tty_hangup to deal with unplugs of the physical hardware (analogous to loss of carrier) and then frees the resources. However the tty_hangup is asynchronous. As the hangup can sleep we can use tty_vhangup which is the non async version to avoid freeing resources too early. Signed-off-by: Alan Cox Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed