linux-stable/drivers/nfc/nfcmrvl
Johan Hovold e5834ac229 NFC: nfcmrvl: use nfc-device for firmware download
Use the nfc- rather than phy-device in firmware-management code that
needs a valid struct device.

This specifically fixes a NULL-pointer dereference in
nfcmrvl_fw_dnld_init() during registration when the underlying tty is
one end of a Unix98 pty.

Note that the driver still uses the phy device for any debugging, which
is fine for now.

Fixes: 3194c68701 ("NFC: nfcmrvl: add firmware download support")
Cc: stable <stable@vger.kernel.org>     # 4.4
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 NFC: nfcmrvl: use nfc-device for firmware download 2017-06-18 23:57:59 +02: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 NFC: nfcmrvl: do not use device-managed resources 2017-06-18 23:57:59 +02: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