[media] media: v4l2-compat-ioctl32: fix missing length copy in put_v4l2_buffer32
authorTiffany Lin <tiffany.lin@mediatek.com>
Tue, 19 Jan 2016 07:56:50 +0000 (05:56 -0200)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 18 Apr 2016 12:50:34 +0000 (08:50 -0400)
commit4dc695f3116ba454f9624f15b512b8caa23e5221
tree635fc2da2e8c29d494af45658b66392a060149c4
parent3beac2b0bffd8e977ef1d464dd424f22af965a96
[media] media: v4l2-compat-ioctl32: fix missing length copy in put_v4l2_buffer32

[ Upstream commit 7df5ab8774aa383c6d2bff00688d004585d96dfd ]

In v4l2-compliance utility, test QUERYBUF required correct length
value to go through each planar to check planar's length in
multi-planar buffer type

Signed-off-by: Tiffany Lin <tiffany.lin@mediatek.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: <stable@vger.kernel.org> # for v3.7 and up
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/media/v4l2-core/v4l2-compat-ioctl32.c