V4L/DVB (8022): saa7134: fix race between opening and closing the device
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Tue, 10 Jun 2008 18:18:16 +0000 (15:18 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 26 Jun 2008 18:58:46 +0000 (15:58 -0300)
decrementing dev->empress_users should be done as last action of ts_release,
because it sleeps and write access to dev->empress_started is not protected
in any way
(additionally closing thread could mute audio after opening thread unmuted it)

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

No differences found