[media] pwc: fix WARN_ON
authorHans Verkuil <hverkuil@xs4all.nl>
Mon, 4 Aug 2014 10:29:59 +0000 (07:29 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 29 Jan 2015 20:27:03 +0000 (18:27 -0200)
commit80b0963e1698e10a58451f0508058fc20e48334a
treeb925dc546153cbdf086b6c67b467591770fa01d8
parenta4bca4c7ad36a4cdafc87d1dce3758cdccef1ca7
[media] pwc: fix WARN_ON

If start_streaming fails, then the buffers must be given back to vb2 with state
QUEUED, not ERROR. Otherwise a WARN_ON will be generated.

In the disconnect it is pointless to call pwc_cleanup_queued_bufs() as stop_streaming()
will be called anyway.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Tested-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/pwc/pwc-if.c