aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/media/common
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2019-02-26 07:54:22 -0500
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-03-19 14:02:23 -0400
commite6f8bd59c28f758feea403a70d6c3ef28c50959f (patch)
treef529268d719aada0c2856e1847d6d3303864ddec /drivers/media/common
parentmedia: au0828: minor fix to a misleading comment in _close() (diff)
downloadwireguard-linux-e6f8bd59c28f758feea403a70d6c3ef28c50959f.tar.xz
wireguard-linux-e6f8bd59c28f758feea403a70d6c3ef28c50959f.zip
media: gspca: do not resubmit URBs when streaming has stopped
When streaming is stopped all URBs are killed, but in fill_frame and in bulk_irq this results in an attempt to resubmit the killed URB. That is not what you want and causes spurious kernel messages. So check if streaming has stopped before resubmitting. Also check against gspca_dev->streaming rather than vb2_start_streaming_called() since vb2_start_streaming_called() will return true when in stop_streaming, but gspca_dev->streaming is set to false when stop_streaming is called. Fixes: 6992effe5344 ("gspca: Kill all URBs before releasing any of them") Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/common')
0 files changed, 0 insertions, 0 deletions