From: Guennadi Liakhovetski Date: Fri, 30 May 2014 23:26:38 +0000 (-0300) Subject: [media] V4L2: fix VIDIOC_CREATE_BUFS 32-bit compatibility mode data copy-back X-Git-Tag: omap-for-v3.19/fixes-rc1~133^2~246 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ed9b28504326f8cf542e6b68245b2f7ce009216;p=pandora-kernel.git [media] V4L2: fix VIDIOC_CREATE_BUFS 32-bit compatibility mode data copy-back Similar to an earlier patch, fixing reading user-space data for the VIDIOC_CREATE_BUFS ioctl() in 32-bit compatibility mode, this patch fixes writing back of the possibly modified struct to the user. However, unlike the former bug, this one is much less harmful, because it only results in the kernel failing to write the .type field back to the user, but in fact this is likely unneeded, because the kernel will hardly want to change that field. Therefore this bug is more of a theoretical nature. Signed-off-by: Guennadi Liakhovetski Acked-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed