diff options
author | Mauro Carvalho Chehab <[email protected]> | 2010-12-15 18:45:42 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <[email protected]> | 2010-12-17 18:39:43 -0200 |
commit | 587f0d5d6d44e3529028bf197d424f866fb2411d (patch) | |
tree | 78baa254ab816cfce7cc37e6b4f294e94ab2f689 /tools/perf/util/trace-event-scripting.c | |
parent | a757ee2216211278680dd8ac869aabe7b4a9970d (diff) |
[media] bttv: fix mutex use before init (BZ#24602)
Fix a regression where bttv driver causes oopses when loading, since it
were using some non-initialized mutexes. While it would be possible to
fix the issue, there are some other lock troubles, like to the presence of
lock code at free_btres_lock().
It is possible to fix, but the better is to just use the core-assisted
locking schema. This way, V4L2 core will serialize access to all
ioctl's/open/close/mmap/read/poll operations, avoiding to have two
processes accessing the hardware at the same time. Also, as there's just
one lock, instead of 3, there's no risk of dead locks.
The net result is a cleaner code, with just one lock.
Reported-by: Dan Carpenter <[email protected]>
Reported-by: Brandon Philips<[email protected]>
Reported-by: Chris Clayton <[email protected]>
Reported-by: Torsten Kaiser <[email protected]>
Tested-by: Chris Clayton <[email protected]>
Tested-by: Torsten Kaiser <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions