]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit344d6c6ba6ba5c4fede2f07adbd26d53109a2dd8
treee76f78428ccde8e7c294f23ce128728ce0afb3d6
parent1d6213ab995c61f7d1d81cf6cf876acf15d6e714
[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