media: vb2: don't unbind/put the object when going to state QUEUED
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Wed, 28 Nov 2018 08:37:46 +0000 (03:37 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 3 Dec 2018 20:02:53 +0000 (15:02 -0500)
commitdde6bdcc975983c219ffe9b8f3a2942df0b7937d
treeb763a057f909d88336b4daa6f033efede5fd8afc
parent6093d3002eabd7c2913d97f1d1f4ce34b072acf9
media: vb2: don't unbind/put the object when going to state QUEUED

When a buffer is returned to state QUEUED (that happens when
start_streaming fails), then do not unbind and put the object
from the request. Nothing has changed yet, so just keep it as
is.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/common/videobuf2/videobuf2-core.c