[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)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 3 Sep 2013 12:24:21 +0000 (09:24 -0300)
commit3396b096c54a84603c51bd705effa88f7f5b0d76
tree01ddc445e9e53570e3026dce3001f62911d73321
parent32bf7c6cdf63a6704822c81b7139c54ac1cbd6a1
[media] exynos4-is: Fix fimc-lite bayer formats

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>
Cc: stable@vger.kernel.org
drivers/media/platform/exynos4-is/fimc-lite.c