linux-brain/drivers/nfc
Johan Hovold 2dc70c6ea8 NFC: pn533: fix bulk-message timeout
commit a112adafcb47760feff959ee1ecd10b74d2c5467 upstream.

The driver was doing a synchronous uninterruptible bulk-transfer without
using a timeout. This could lead to the driver hanging on probe due to a
malfunctioning (or malicious) device until the device is physically
disconnected. While sleeping in probe the driver prevents other devices
connected to the same hub from being added to (or removed from) the bus.

An arbitrary limit of five seconds should be more than enough.

Fixes: dbafc28955 ("NFC: pn533: don't send USB data off of the stack")
Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-01-23 08:20:34 +01:00
..
fdp NFC: fdp: fix incorrect free object 2019-11-12 19:17:53 +01:00
microread License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
nfcmrvl NFC: nfcmrvl: fix gpio-handling regression 2019-08-09 17:53:35 +02:00
nxp-nci NFC: nxp-nci: Fix NULL pointer dereference after I2C communication error 2019-12-17 20:37:27 +01:00
pn533 NFC: pn533: fix bulk-message timeout 2020-01-23 08:20:34 +01:00
pn544 NFC: pn544: Switch to devm_acpi_dev_add_driver_gpios() 2017-06-22 23:51:44 +02:00
s3fwrn5 networking: introduce and use skb_put_data() 2017-06-16 11:48:37 -04:00
st-nci st_nci_hci_connectivity_event_received: null check the allocation 2019-08-29 08:26:38 +02:00
st21nfca NFC: st21nfca: fix double free 2019-11-12 19:17:55 +01:00
st95hf spi: ST ST95HF NFC: declare missing of table 2019-05-16 19:42:24 +02:00
Kconfig NFC: trf7970a: Convert to descriptor based GPIO interface 2017-06-18 23:57:58 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mei_phy.c mei: bus: split RX and async notification callbacks 2016-11-17 16:37:49 +01:00
mei_phy.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
nfcsim.c NFC: add NULL checks to avoid potential NULL pointer dereference 2017-06-23 00:34:56 +02:00
port100.c nfc: port100: handle command failure cleanly 2019-12-01 09:14:23 +01:00
trf7970a.c NFC: trf7970a: Correct register settings for 27MHz clock 2017-06-28 09:16:54 +02:00