]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l2-ioctl.c: check for valid tuner type in S_HW_FREQ_SEEK
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 14 Jun 2011 07:03:26 +0000 (04:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 7 Jul 2011 18:06:12 +0000 (15:06 -0300)
commit7c37b8ec171e83d19361d8747e6728d8d5502b45
tree125aede7f75d1760654c88669d451656e019b11b
parentb5252f66eabc16a6559861dd540eed4a55834fec
[media] v4l2-ioctl.c: check for valid tuner type in S_HW_FREQ_SEEK

Prohibit attempts to change the tuner to a type that is different
from the device node the ioctl is called from. I.e. the type must
be RADIO for a radio node and ANALOG_TV for a video/vbi node.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-ioctl.c