diff options
author | 2014-08-04 07:14:14 -0300 | |
---|---|---|
committer | 2014-09-21 20:46:10 -0300 | |
commit | bf3593d939520559774cbfee03ba5f314d909620 (patch) | |
tree | a8c9fde479be353b28f458095cd1d3934e8b7b1c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | [media] videobuf2-core.h: fix comment (diff) | |
download | wireguard-linux-bf3593d939520559774cbfee03ba5f314d909620.tar.xz wireguard-linux-bf3593d939520559774cbfee03ba5f314d909620.zip |
[media] vb2: fix vb2 state check when start_streaming fails
Commit bd994ddb2a12a3ff48cd549ec82cdceaea9614df (vb2: Fix stream start and
buffer completion race) broke the buffer state check in vb2_buffer_done.
So accept all three possible states there since I can no longer tell the
difference between vb2_buffer_done called from start_streaming or from
elsewhere.
Instead add a WARN_ON at the end of start_streaming that will check whether
any buffers were added to the done list, since that implies that the wrong
state was used as well.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: stable@vger.kernel.org # for v3.15 and up
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions