]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit1052efe0fc69130d9d6a44bc9ceecd229221d9a1
tree7e7f19cbbd3ff023e80eb7da5b68469085bdfe59
parentfeb75f07102a85026d41e2c4e4113c34dd035c30
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