]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (7556): em28xx: fix locking on vidioc_s_fmt_cap
authorAidan Thornton <makosoft@googlemail.com>
Sun, 13 Apr 2008 18:02:24 +0000 (15:02 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Thu, 24 Apr 2008 17:08:48 +0000 (14:08 -0300)
commit34c9ddb7724fd65c87a96ba3a113e260f4ed39b0
tree5d9fcef7a7394e753a76955c1c64c3947b1d5ee2
parent833cb4338482bce0c0cc4259b0ed841ad74c8a0a
V4L/DVB (7556): em28xx: fix locking on vidioc_s_fmt_cap

Currently, vidioc_s_fmt_cap is allowed even if streaming is running on some
other fh. This is likely to cause issues.

Block use of vidioc_s_fmt_cap if someone else has claimed access to the device.

Signed-off-by: Aidan Thornton <makosoft@googlemail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/em28xx/em28xx-video.c