media: exynos4-is: Fix fimc-lite bayer formats
authorArun Kumar K <arun.kk@samsung.com>
Mon, 15 Jul 2013 10:51:23 +0000 (07:51 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Sep 2013 00:21:47 +0000 (17:21 -0700)
commit04d49c323237a3e9ed15b13808ea55ec06310ba7
treec8ecb0c4a9ed502e9d7e1f1b4dc8790398d729fb
parentc2bb0ac102c4d80963c26a68aabd78faa173652e
media: exynos4-is: Fix fimc-lite bayer formats

commit 3396b096c54a84603c51bd705effa88f7f5b0d76 upstream.

The 10-bit and 12-bit Bayer output formats supported by FIMC-LITE
actually use 16 bits where the extra bits are padded with zeros.
The patch corrects buffer allocation for these two formats by
modifying the depth field. This prevents memory corruption by the
output DMA due to insufficient buffer size.

Signed-off-by: Arun Kumar K <arun.kk@samsung.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/platform/exynos4-is/fimc-lite.c