[PATCH 2/2] tty: serial_core: fix NULL struct tty pointer access in uart_write_wakeup

2016-10-28 Thread Rob Herring
Since commit 761ed4a94582ab29 ("tty: serial_core: convert uart_close to use tty_port_close"), the serial console is broken on various systems and typing "reboot" splats the following on the serial console: INIT: Sending p[ 427.863916] BUG: unable to handle kernel NULL pointer dereference at

[PATCH 2/2] tty: serial_core: fix NULL struct tty pointer access in uart_write_wakeup

2016-10-28 Thread Rob Herring
Since commit 761ed4a94582ab29 ("tty: serial_core: convert uart_close to use tty_port_close"), the serial console is broken on various systems and typing "reboot" splats the following on the serial console: INIT: Sending p[ 427.863916] BUG: unable to handle kernel NULL pointer dereference at