diff options
author | Brandon Philips <brandon@ifup.org> | 2008-04-02 11:10:59 -0700 |
---|---|---|
committer | Brandon Philips <brandon@ifup.org> | 2008-04-02 11:10:59 -0700 |
commit | c42776d2207482af2672ee15320059527cbc779d (patch) | |
tree | ddf723ce602ef4e3dcf0b122df70084dfa70d21e /linux/drivers/media/dvb/dvb-usb | |
parent | 0a77d984a1bf348ffe5876173a820fedf64c5be1 (diff) | |
download | mediapointer-dvb-s2-c42776d2207482af2672ee15320059527cbc779d.tar.gz mediapointer-dvb-s2-c42776d2207482af2672ee15320059527cbc779d.tar.bz2 |
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>
---
linux/drivers/media/video/vivi.c | 317 +++++++++------------------------------
1 file changed, 81 insertions(+), 236 deletions(-)
Diffstat (limited to 'linux/drivers/media/dvb/dvb-usb')
0 files changed, 0 insertions, 0 deletions