[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)
commita6cf90a91551c767bed78a4418c26f41aed60cde
tree125aede7f75d1760654c88669d451656e019b11b
parent487833018eb2b969f20457fcf1956b3c6dbfad51
[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