summaryrefslogtreecommitdiffstats
path: root/lib/locking-selftest-wsem.h
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2020-01-13 18:23:58 +0100
committerJakub Kicinski <kuba@kernel.org>2020-01-14 03:50:18 +0100
commita112adafcb47760feff959ee1ecd10b74d2c5467 (patch)
tree9fbf7e1efb2a2a873c30efe26e760d43260242bd /lib/locking-selftest-wsem.h
parentqmi_wwan: Add support for Quectel RM500Q (diff)
downloadlinux-a112adafcb47760feff959ee1ecd10b74d2c5467.tar.xz
linux-a112adafcb47760feff959ee1ecd10b74d2c5467.zip
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: dbafc28955fa ("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>
Diffstat (limited to 'lib/locking-selftest-wsem.h')
0 files changed, 0 insertions, 0 deletions