V4L/DVB (6275): V4L: vivi.c remove the "resource" locking
authorBrandon Philips <bphilips@suse.de>
Thu, 27 Sep 2007 23:55:17 +0000 (20:55 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 10 Oct 2007 03:03:05 +0000 (00:03 -0300)
commitba32bd95d431525ad2ffac97cadf9ee40b63939e
treeedb0f38f00c980bd4c95bd82093c8cfad9653a26
parent85c7c70bc241d506dffc1879158f77f8aac69734
V4L/DVB (6275): V4L: vivi.c remove the "resource" locking

The "resource" locking in vivi isn't needed since
streamon/streamoff/read_stream do mutual exclusion using
q->reading/q->streaming.

Plus it is sort of broken:

a) res_locked() use in vivi_read() is racey.
b) res_free() calls mutex_lock twice causing streamoff to break

Signed-off-by: Brandon Philips <bphilips@suse.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/vivi.c