]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (8505): saa7134-empress.c: fix deadlock
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 26 Jul 2008 12:01:24 +0000 (09:01 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 27 Jul 2008 14:06:23 +0000 (11:06 -0300)
commitd4f70053d206b051fc9d222229183930804ca008
tree7e7f19cbbd3ff023e80eb7da5b68469085bdfe59
parent29bd28626409dbb37d52b09a87287b157d32219d
V4L/DVB (8505): saa7134-empress.c: fix deadlock

ts_release() locked a mutex that videobuf_stop() also tried to obtain.
But ts_release() shouldn't hold that mutex at all.

Make empress_users atomic as well to prevent possible race condition.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/saa7134/saa7134-empress.c
drivers/media/video/saa7134/saa7134.h