media: gspca: Kill URBs on USB device disconnect
authorEzequiel Garcia <ezequiel@collabora.com>
Thu, 28 Feb 2019 15:28:34 +0000 (10:28 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:45:14 +0000 (06:45 -0700)
commit3e90b7f4dee2790147e94bfb3bf629f54b116c38
tree94ad03c81026ebd4039cb2956ea8a8eb7cb55fbc
parent001bda1a3b9f22c8d17c77aec8dfcf2bc20838a9
media: gspca: Kill URBs on USB device disconnect

[ Upstream commit 9b9ea7c2b57a0c9c3341fc6db039d1f7971a432e ]

In order to prevent ISOC URBs from being infinitely resubmitted,
the driver's USB disconnect handler must kill all the in-flight URBs.

While here, change the URB packet status message to a debug level,
to avoid spamming the console too much.

This commit fixes a lockup caused by an interrupt storm coming
from the URB completion handler.

Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/usb/gspca/gspca.c