From: Brandon Philips Date: Wed, 2 Apr 2008 21:10:59 +0000 (-0300) Subject: V4L/DVB (7492): vivi: Simplify the vivi driver and avoid deadlocks X-Git-Tag: v2.6.26-rc1~1084^2~212 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78718e5d44cd450431d5b16ee36d3a7de1db6dfa;p=pandora-kernel.git 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 Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed