diff options
author | Sakari Ailus <sakari.ailus@iki.fi> | 2016-03-03 17:20:14 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-03-03 21:10:53 (GMT) |
commit | fbe093ac9f0201939279cdfe8b0fce20ce5ef7a9 (patch) | |
tree | c1013fbe8e968d678d26867e7cef9279a42e816a /drivers/media | |
parent | 93125094c07d8c9ec25dff5869f191b33eb9dd6e (diff) | |
download | linux-fbe093ac9f0201939279cdfe8b0fce20ce5ef7a9.tar.xz |
[media] media: Sanitise the reserved fields of the G_TOPOLOGY IOCTL arguments
The argument structs are used in arrays for G_TOPOLOGY IOCTL. The
arguments themselves do not need to be aligned to a power of two, but
aligning them up to the largest basic type alignment (u64) on common ABIs
is a good thing to do.
The patch changes the size of the reserved fields to 5 or 6 u32's and
aligns the size of the struct to 8 bytes so we do no longer depend on the
compiler to perform the alignment.
While at it, add __attribute__ ((packed)) to these structs as well.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media')
0 files changed, 0 insertions, 0 deletions