diff options
author | Ezequiel Garcia <[email protected]> | 2018-06-15 15:07:22 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2018-07-04 08:00:53 -0400 |
commit | cd63c0288fd760ce7de247fba618e2bbcfc0c35c (patch) | |
tree | 3bf6f29080bbb065d52886e0ce1b00652c315b9b /lib/clz_tab.c | |
parent | d862bc08ffcb45316962a4d59c6d4ffb51f9dbfa (diff) |
media: sta2x11: Add video_device and vb2_queue locks
Currently, this driver does not serialize its video4linux
ioctls, which is a bug, as race conditions might appear.
In addition, video_device and vb2_queue locks are now both
mandatory. Add them, and implement wait_prepare and
wait_finish.
To stay on the safe side, this commit uses a single mutex
for both locks. Better latency can be obtained by separating
these if needed.
Signed-off-by: Ezequiel Garcia <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'lib/clz_tab.c')
0 files changed, 0 insertions, 0 deletions