From: Mauro Carvalho Chehab Date: Thu, 20 Nov 2008 13:30:26 +0000 (-0300) Subject: V4L/DVB (9668): em28xx: fix a race condition with hald X-Git-Tag: v2.6.28-rc7~1^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=818a557eeb9c16a9a2dc93df348b0ff68fbc487f;p=pandora-kernel.git V4L/DVB (9668): em28xx: fix a race condition with hald Newer versions of hald tries to open it to call QUERYCAP. Due to the lack of a proper locking, it is possible to open the device before it finishes initialization. This patch adds a lock to avoid this risk, and to protect the list of em28xx devices. While here, remove the uneeded BKL lock. Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed