Skip to content
Snippets Groups Projects
Commit 3eca5299 authored by Tommie Gannert's avatar Tommie Gannert Committed by David S. Miller
Browse files

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: default avatarTommie Gannert <tommie@gannert.se>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 163c8ff3
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment