diff options
author | Brandon Philips <brandon@ifup.org> | 2008-04-02 23:10:59 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 19:07:57 +0200 |
commit | 78718e5d44cd450431d5b16ee36d3a7de1db6dfa (patch) | |
tree | 6f229f1abbd2655433d22f6d054fda4515d4a8da /include/media | |
parent | V4L/DVB (7491): vivi: make vivi openable only once (diff) | |
download | linux-78718e5d44cd450431d5b16ee36d3a7de1db6dfa.tar.xz linux-78718e5d44cd450431d5b16ee36d3a7de1db6dfa.zip |
V4L/DVB (7492): vivi: Simplify the vivi driver and avoid deadlocks
vivi previously had a very complex queuing system and held spinlocks while
doing copy_to_user, kmalloc, etc. This caused the driver to easily deadlock
when a multi-threaded application used it and revealed bugs in videobuf too.
This replaces the copy_to_user with memcpy since we were never copying to user
space addresses. And makes the kmalloc atomic.
Signed-off-by: Brandon Philips <bphilips@suse.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'include/media')
0 files changed, 0 insertions, 0 deletions