]> git.baikalelectronics.ru Git - kernel.git/commit
media: gspca: Kill URBs on USB device disconnect
authorEzequiel Garcia <ezequiel@collabora.com>
Thu, 28 Feb 2019 15:28:34 +0000 (10:28 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 29 Mar 2019 11:34:32 +0000 (07:34 -0400)
commit086f1f5af6a2a5f33b7e8cd4c543e198f7d6fb0b
treef96fd8cf9c5af59b037843b3d934513eca1ca892
parent37808d3323d50ab586887e45672d638d79d57a1d
media: gspca: Kill URBs on USB device disconnect

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>
drivers/media/usb/gspca/gspca.c