From: Hans Verkuil Date: Tue, 4 Mar 2014 10:34:49 +0000 (-0300) Subject: [media] vb2: call buf_finish from __queue_cancel X-Git-Tag: v3.15-rc1~85^2~167 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c0863b1cc485f2bacac0675c68b73e5341cfd26;p=pandora-kernel.git [media] vb2: call buf_finish from __queue_cancel If a queue was canceled, then the buf_finish op was never called for the pending buffers. So add this call to queue_cancel. Before calling buf_finish set the buffer state to PREPARED, which is the correct state. That way the states DONE and ERROR will only be seen in buf_finish if streaming is in progress. Since buf_finish can now be called from non-streaming state we need to adapt the handful of drivers that actually need to know this. Signed-off-by: Hans Verkuil Acked-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed