This is a note to let you know that I've just added the patch titled

    media: exynos4-is: Fix fimc-lite bayer formats

to the 3.11-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     media-exynos4-is-fix-fimc-lite-bayer-formats.patch
and it can be found in the queue-3.11 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From 3396b096c54a84603c51bd705effa88f7f5b0d76 Mon Sep 17 00:00:00 2001
From: Arun Kumar K <[email protected]>
Date: Mon, 15 Jul 2013 07:51:23 -0300
Subject: media: exynos4-is: Fix fimc-lite bayer formats

From: Arun Kumar K <[email protected]>

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 <[email protected]>
Signed-off-by: Sylwester Nawrocki <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 drivers/media/platform/exynos4-is/fimc-lite.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/drivers/media/platform/exynos4-is/fimc-lite.c
+++ b/drivers/media/platform/exynos4-is/fimc-lite.c
@@ -90,7 +90,7 @@ static const struct fimc_fmt fimc_lite_f
                .name           = "RAW10 (GRBG)",
                .fourcc         = V4L2_PIX_FMT_SGRBG10,
                .colorspace     = V4L2_COLORSPACE_SRGB,
-               .depth          = { 10 },
+               .depth          = { 16 },
                .color          = FIMC_FMT_RAW10,
                .memplanes      = 1,
                .mbus_code      = V4L2_MBUS_FMT_SGRBG10_1X10,
@@ -99,7 +99,7 @@ static const struct fimc_fmt fimc_lite_f
                .name           = "RAW12 (GRBG)",
                .fourcc         = V4L2_PIX_FMT_SGRBG12,
                .colorspace     = V4L2_COLORSPACE_SRGB,
-               .depth          = { 12 },
+               .depth          = { 16 },
                .color          = FIMC_FMT_RAW12,
                .memplanes      = 1,
                .mbus_code      = V4L2_MBUS_FMT_SGRBG12_1X12,


Patches currently in stable-queue which might be from [email protected] are

queue-3.11/media-exynos4-is-fix-fimc-lite-bayer-formats.patch
queue-3.11/media-exynos-gsc-register-v4l2-device.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to