[media] marvell-ccic: correctly requeue buffers
authorHans Verkuil <hans.verkuil@cisco.com>
Thu, 5 Mar 2015 21:00:07 +0000 (18:00 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 1 May 2015 10:46:56 +0000 (07:46 -0300)
commitca657b28fd63f0f0971247e12727d286043b1d15
tree7e13afd356026adb07aa9a1fc87723fbddddb39d
parent534234299867abb1db534a10c63cd155c7c6fb8e
[media] marvell-ccic: correctly requeue buffers

If start_streaming fails or stop_streaming is called, then all queued
buffers need to be given back to vb2.

This prevents vb2 from calling WARN_ON when it detects that this is not
done correctly.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/marvell-ccic/mcam-core.c