V4L/DVB (11662): v4l2-ioctl: Clear buffer type specific trailing fields/padding
authorTrent Piepho <xyzzy@speakeasy.org>
Fri, 1 May 2009 00:03:34 +0000 (21:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 9 May 2009 21:51:48 +0000 (18:51 -0300)
commit7ecc0cf937e97b6116db09cd13c32467b34c164a
tree9ab0e428f3e230d98169aee3eb3b9bd49d621c97
parent1175d6131f7a89c163227169325ca77a22b18cb2
V4L/DVB (11662): v4l2-ioctl: Clear buffer type specific trailing fields/padding

Some ioctls have structs that are a different size depending on what type
of buffer is being used.  If the buffer type leaves a field unused or has
padding space at the end, this space should be zeroed out.

The problems with S_FMT and REQBUFS were original identified and patched by
Marton Nemeth <nm127@freemail.hu>.

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