Skip to content

Commit

Permalink
V4L/DVB (7492): vivi: Simplify the vivi driver and avoid deadlocks
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Brandon Philips authored and Mauro Carvalho Chehab committed Apr 24, 2008
1 parent aa9dbac commit 78718e5
Showing 1 changed file with 81 additions and 232 deletions.
Loading

0 comments on commit 78718e5

Please sign in to comment.