Linux Samsung SOC development
 help / color / mirror / Atom feed
* [PATCH] [media] s5p-jpeg: Initialize cb and cr to zero.
@ 2014-12-17  7:21 Tony K Nadackal
  2015-01-05  5:13 ` Tony K Nadackal
  0 siblings, 1 reply; 2+ messages in thread
From: Tony K Nadackal @ 2014-12-17  7:21 UTC (permalink / raw)
  To: linux-media, linux-arm-kernel, linux-samsung-soc
  Cc: mchehab, j.anaszewski, kgene, k.debski, s.nawrocki, bhushan.r,
	Tony K Nadackal

To avoid garbage value written into image base address planes,
initialize cb and cr of structure s5p_jpeg_addr to zero.

Signed-off-by: Tony K Nadackal <tony.kn@samsung.com>
---
This patch is created and tested on top of linux-next-20141210.
It can be cleanly applied on media-next and kgene/for-next.

 drivers/media/platform/s5p-jpeg/jpeg-core.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p-jpeg/jpeg-core.c
index 91bd3e6..54fa5d9 100644
--- a/drivers/media/platform/s5p-jpeg/jpeg-core.c
+++ b/drivers/media/platform/s5p-jpeg/jpeg-core.c
@@ -1845,6 +1845,9 @@ static void exynos4_jpeg_set_img_addr(struct s5p_jpeg_ctx *ctx)
 	struct s5p_jpeg_addr jpeg_addr;
 	u32 pix_size, padding_bytes = 0;
 
+	jpeg_addr.cb = 0;
+	jpeg_addr.cr = 0;
+
 	pix_size = ctx->cap_q.w * ctx->cap_q.h;
 
 	if (ctx->mode == S5P_JPEG_ENCODE) {
-- 
2.2.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-05  5:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-17  7:21 [PATCH] [media] s5p-jpeg: Initialize cb and cr to zero Tony K Nadackal
2015-01-05  5:13 ` Tony K Nadackal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox