linux/drivers/nfc/nfcmrvl
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: e097dc624f ("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
..
fw_dnld.c networking: add and use skb_put_u8() 2017-06-16 11:48:40 -04:00
fw_dnld.h NFC: nfcmrvl: add firmware download support 2015-10-27 04:18:44 +01:00
i2c.c networking: introduce and use skb_put_data() 2017-06-16 11:48:37 -04:00
Kconfig NFC: nfcmrvl: fix SPI driver dependencies 2015-11-05 00:32:25 +01:00
main.c networking: make skb_push & __skb_push return void pointers 2017-06-16 11:48:40 -04:00
Makefile NFC: nfcmrvl: add spi driver 2015-10-27 04:24:35 +01:00
nfcmrvl.h NFC: nfcmrvl: add i2c driver 2015-10-27 04:21:14 +01:00
spi.c NFC: nfcmrvl: double free on error path 2017-04-02 00:09:17 +02:00
uart.c NFC: nfcmrvl_uart: add missing tty-device sanity check 2017-06-18 23:57:59 +02:00
usb.c networking: introduce and use skb_put_data() 2017-06-16 11:48:37 -04:00