mirror of
https://github.com/torvalds/linux.git
synced 2026-05-13 21:32:16 -04:00
commit8bcd4e6a8dupstream. Make sure to use a properly refcounted tty_struct in write_wake up to avoid dereferencing a NULL-pointer when a port is being hung up. Fixes:bed35c6dfa("serdev: add a tty port controller driver") Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>