From: Tommie Gannert Date: Mon, 17 Feb 2014 20:46:04 +0000 (+0000) Subject: irtty-sir.c: Do not set_termios() on irtty_close() X-Git-Tag: v3.14-rc4~30^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3eca5299532ea9d6ab63b03e7aaac9071d5eed29;p=pandora-kernel.git irtty-sir.c: Do not set_termios() on irtty_close() Issuing set_termios() from irtty_close() causes kernel Oops for unplugged usb-serial devices. Since no other tty_ldisc calls set_termios() on close and no tty driver seem to check if tty->device_data is NULL or not on entry to set_termios(), the only solution I can come up with is to remove the irtty_stop_receiver() call, which only updates termios. Signed-off-by: Tommie Gannert Signed-off-by: David S. Miller --- Reading git-diff-tree failed