Johan Hovold 15e0c59f15 NFC: nfcmrvl_uart: add missing tty-device sanity check
Make sure to check the tty-device pointer before trying to access the
parent device to avoid dereferencing a NULL-pointer when the tty is one
end of a Unix98 pty.

Fixes: e097dc624f78 ("NFC: nfcmrvl: add UART driver")
Cc: stable <stable@vger.kernel.org>     # 4.2
Cc: Vincent Cuissard <cuissard@marvell.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
2017-06-18 23:57:59 +02:00
..
2017-06-15 01:52:32 +02:00
2017-05-04 19:15:35 -07:00
2017-06-16 15:22:42 -04:00
2017-06-13 15:09:10 +09:00
2017-06-16 11:48:40 -04:00
2017-05-05 19:33:07 -07:00
2017-04-27 11:54:49 +01:00
2017-06-17 22:54:01 -04:00
2017-05-09 10:01:15 -07:00
2017-05-04 19:15:35 -07:00
2017-05-18 23:54:47 -07:00
2017-05-05 11:36:44 -07:00
2017-05-11 11:12:26 -07:00
2017-06-09 09:59:51 -07:00