linux/drivers/nfc
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
..
fdp networking: add and use skb_put_u8() 2017-06-16 11:48:40 -04:00
microread networking: add and use skb_put_u8() 2017-06-16 11:48:40 -04:00
nfcmrvl NFC: nfcmrvl: use nfc-device for firmware download 2017-06-18 23:57:59 +02:00
nxp-nci networking: make skb_pull & friends return void pointers 2017-06-16 11:48:39 -04:00
pn533 networking: add and use skb_put_u8() 2017-06-16 11:48:40 -04:00
pn544 networking: add and use skb_put_u8() 2017-06-16 11:48:40 -04:00
s3fwrn5 networking: introduce and use skb_put_data() 2017-06-16 11:48:37 -04:00
st21nfca networking: add and use skb_put_u8() 2017-06-16 11:48:40 -04:00
st95hf networking: add and use skb_put_u8() 2017-06-16 11:48:40 -04:00
st-nci networking: make skb_push & __skb_push return void pointers 2017-06-16 11:48:40 -04:00
Kconfig NFC: trf7970a: Convert to descriptor based GPIO interface 2017-06-18 23:57:58 +02:00
Makefile NFC: remove TI nfcwilink driver 2017-04-01 23:04:30 +02:00
mei_phy.c mei: bus: split RX and async notification callbacks 2016-11-17 16:37:49 +01:00
mei_phy.h mei: bus: complete variable rename of type struct mei_cl_device 2015-09-20 19:31:09 -07:00
nfcsim.c NFC: nfcsim: Simulate lost frames through debugfs entry 2016-07-19 23:24:49 +02:00
port100.c networking: add and use skb_put_u8() 2017-06-16 11:48:40 -04:00
trf7970a.c NFC: trf7970a: Clean up coding style issues 2017-06-18 23:57:58 +02:00