android_kernel_oneplus_msm8998/drivers/nfc
Johan Hovold 737d47bda3 NFC: nfcmrvl_uart: fix OF child-node lookup
[ Upstream commit 5bf59773aaf36dd62117dc83d50e1bbf9ef432da ]

Use the new of_get_compatible_child() helper to lookup the nfc child
node instead of using of_find_compatible_node(), which searches the
entire tree from a given start node and thus can return an unrelated
(i.e. non-child) node.

This also addresses a potential use-after-free (e.g. after probe
deferral) as the tree-wide helper drops a reference to its first
argument (i.e. the parent node).

Fixes: e097dc624f ("NFC: nfcmrvl: add UART driver")
Fixes: d8e018c0b3 ("NFC: nfcmrvl: update device tree bindings for Marvell NFC")
Cc: stable <stable@vger.kernel.org>     # 4.2
Cc: Vincent Cuissard <cuissard@marvell.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2018-12-01 09:46:35 +01:00
..
fdp nfc: fdp: fix NULL pointer dereference 2017-08-06 19:19:40 -07:00
microread char/misc drivers for 4.4-rc1 2015-11-04 22:15:15 -08:00
nfcmrvl NFC: nfcmrvl_uart: fix OF child-node lookup 2018-12-01 09:46:35 +01:00
nxp-nci NFC: nxp-nci: constify nxp_nci_phy_ops structure 2015-10-19 20:04:13 +02:00
pn544 char/misc drivers for 4.4-rc1 2015-11-04 22:15:15 -08:00
s3fwrn5 NFC: nci: rename nci_prop_ops to nci_driver_ops 2015-10-25 20:28:59 +01:00
st-nci spi: Updates for v4.4 2015-11-05 13:15:12 -08:00
st21nfca NFC: st21nfca: Add support for proprietary commands 2015-10-27 04:00:24 +01:00
Kconfig NFC: Add Intel Fields Peak NFC solution driver 2015-10-25 20:29:16 +01:00
Makefile NFC: Add Intel Fields Peak NFC solution driver 2015-10-25 20:29:16 +01:00
mei_phy.c mei: bus: fix received data size check in NFC fixup 2016-11-18 10:48:36 +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: netlink: Add mode parameter to deactivate_target functions 2015-10-27 03:55:12 +01:00
nfcwilink.c NFC: nfcwilink: Drop a useless static qualifier 2015-10-19 20:06:13 +02:00
pn533.c NFC: netlink: Add mode parameter to deactivate_target functions 2015-10-27 03:55:12 +01:00
port100.c NFC: logging neatening 2015-04-07 12:05:12 +02:00
trf7970a.c spi: Updates for v4.4 2015-11-05 13:15:12 -08:00