]> git.baikalelectronics.ru Git - kernel.git/commit
[media] videodev2.h: Fix VIDIOC_QUERYMENU ioctl regression
authorHans Verkuil <hverkuil@xs4all.nl>
Tue, 17 Apr 2012 11:41:58 +0000 (08:41 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 19 Apr 2012 14:11:33 +0000 (11:11 -0300)
commit0719e1fe406c055b055f7689ca93533fe543f9d5
treecc59a7c51dcb11961bf67d113f6bc0a65b720e9b
parent780b671c91b0a35087f7d192145bd8ad0a1a6d66
[media] videodev2.h: Fix VIDIOC_QUERYMENU ioctl regression

Fixes a regression in VIDIOC_QUERYMENU introduced when the __s64 value
field was added to the union. On a 64-bit system this will change the
size of this v4l2_querymenu structure from 44 to 48 bytes, thus
breaking the ABI. By adding the packed attribute it is working again.

Tested on both 64 and 32 bit systems.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
include/linux/videodev2.h