]> git.baikalelectronics.ru Git - kernel.git/commit
[media] cx88: protect cx8802_devlist with a mutex
authorJonathan Nieder <jrnieder@gmail.com>
Sun, 1 May 2011 09:30:14 +0000 (06:30 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 20 May 2011 12:29:38 +0000 (09:29 -0300)
commitbd03236b696ff9265407cd66859cd9957a517caa
treee76f78428ccde8e7c294f23ce128728ce0afb3d6
parent9cfd3a8a67901260bd1f4ab10a9ab089b7abb8a4
[media] cx88: protect cx8802_devlist with a mutex

Add and use a mutex to protect the cx88-mpeg device list.  Previously
the BKL prevented races.

Based on work by Ben Hutchings <ben@decadent.org.uk>.

Tested-by: Andi Huber <hobrom@gmx.at>
Tested-by: Marlon de Boer <marlon@hyves.nl>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx88/cx88-mpeg.c