]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (11784): cx88: Fix race condition between cx8800 startup and hald
authorDevin Heitmueller <dheitmueller@kernellabs.com>
Tue, 28 Apr 2009 17:35:27 +0000 (14:35 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Jun 2009 22:14:13 +0000 (19:14 -0300)
commita894f77a033ede1c9ebc2142836846a64a8b6123
tree2c6496c058143c8379190e0cebde8d8cf345b86d
parentf3c827fe0917d4bf03e00a030e86105e9f887e8b
V4L/DVB (11784): cx88: Fix race condition between cx8800 startup and hald

A power management fix to properly put the xc5000 into low power mode
revealed a race condition where hald could detect the creation of the device
file and connect to the device while the initial device configuration is
still in progress.

Lock the core structure so that video_release cannot be called and put the
tuner to sleep in the middle of the initial call to cx88_set_tvnorm() in
cx8800_initdev()

Thanks to Michael Krufky for discovering the issue and providing an
environment to test in.

Cc: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx88/cx88-video.c