OpenCloudOS-Kernel/drivers/nfc/pn533
Johan Hovold a112adafcb NFC: pn533: fix bulk-message timeout
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>
2020-01-13 18:50:18 -08:00
..
Kconfig nfc: pn533: add UART phy driver 2019-10-29 21:05:26 -07:00
Makefile nfc: pn533: add UART phy driver 2019-10-29 21:05:26 -07:00
i2c.c nfc: pn533: Split pn533 init & nfc_register 2019-10-29 21:05:26 -07:00
pn533.c nfc: pn533: pn533_phy_ops dev_[up, down] return int 2019-11-13 12:15:03 -08:00
pn533.h nfc: pn533: pn533_phy_ops dev_[up, down] return int 2019-11-13 12:15:03 -08:00
uart.c nfc: pn533: pn533_phy_ops dev_[up, down] return int 2019-11-13 12:15:03 -08:00
usb.c NFC: pn533: fix bulk-message timeout 2020-01-13 18:50:18 -08:00