]> git.baikalelectronics.ru Git - kernel.git/commit
V4L/DVB (11260): v4l2-ioctl: Check format for S_PARM and G_PARM
authorTrent Piepho <xyzzy@speakeasy.org>
Sun, 29 Mar 2009 01:25:35 +0000 (22:25 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:43:44 +0000 (12:43 -0300)
commitbbe597c59c9d9b149cf1dccb6f818c60172ffc13
tree85aa4eaaaad8f188cc574e9f8488f5fb2a5d51e3
parent4d869efac4bdfc062d0fbdf42a26f830bbd43552
V4L/DVB (11260): v4l2-ioctl:  Check format for S_PARM and G_PARM

Return EINVAL if VIDIOC_S/G_PARM is called for a buffer type that the
driver doesn't define a ->vidioc_try_fmt_XXX() method for.  Several other
ioctls, like QUERYBUF, QBUF, and DQBUF, etc.  do this too.  It saves each
driver from having to check if the buffer type is one that it supports.

Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-ioctl.c