]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
[media] v4l: ioctl: Clear the v4l2_pix_format_mplane reserved field
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 28 Jun 2016 13:20:10 +0000 (10:20 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 9 Sep 2016 14:29:07 +0000 (11:29 -0300)
commitc49148e87a427e2cfb1fda760534021cfa251f45
tree1b1eb6bbea9b9b50727bdebe716253b9e300d58e
parent147fcfca196d0c16ebe40bcdca18e8f3272a6fda
[media] v4l: ioctl: Clear the v4l2_pix_format_mplane reserved field

The S_FMT and TRY_FMT handlers in multiplane mode attempt at clearing
the reserved fields of the v4l2_format structure after the pix_mp
member. However, the reserved fields are inside pix_mp, not after it.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tested-by: Kieran Bingham <kieran@bingham.xyz>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/v4l2-core/v4l2-ioctl.c