[media] vb2: fix plane index sanity check in vb2_plane_cookie()
authorZhaowei Yuan <zhaowei.yuan@samsung.com>
Fri, 22 Aug 2014 02:28:21 +0000 (23:28 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sun, 21 Sep 2014 23:50:21 +0000 (20:50 -0300)
commita9ae4692eda4b99f85757b15d60971ff78a0a0e2
treeb5f857083f955314babeec0d11ead1ba89bf79ad
parent983ed755641cfeac99716311f3d3b464d742f304
[media] vb2: fix plane index sanity check in vb2_plane_cookie()

It's also invalid when plane_no is equal to vb->num_planes

Signed-off-by: Zhaowei Yuan <zhaowei.yuan@samsung.com>
Cc: stable@vger.kernel.org # for v3.7 and up
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/videobuf2-core.c