media: coda: allocate space for mpeg4 decoder mvcol buffer
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 7 Dec 2017 14:59:50 +0000 (09:59 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 18 Dec 2017 19:59:52 +0000 (14:59 -0500)
commit25141bc7ac6f4fa1fe54cec748d4d5458c370a7d
tree1dfa3e7be99345e02d09ab44a01d73e3348b0012
parent8e75a5363ca8296b82a243771e70b7df5cfe688b
media: coda: allocate space for mpeg4 decoder mvcol buffer

The MPEG-4 decoder mvcol buffer was registered, but its size not added
to a frame buffer allocation. This could cause the decoder to write past
the end of the allocated buffer for large frame sizes.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/coda/coda-bit.c