From: Andrzej Pietrasiewicz Date: Fri, 11 Aug 2017 11:50:00 +0000 (-0400) Subject: media: s5p-jpeg: don't overwrite result's "size" member X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=65d5c96dd8c1c87003a073f3d0dd67ac09d28766;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git media: s5p-jpeg: don't overwrite result's "size" member Originally the "size" member was modified in a local variable passed to s5p_jpeg_parse_hdr() but the member was not used by the caller, so it did not matter. After applying patch "media: s5p-jpeg: Don't use temporary structure in s5p_jpeg_buf_queue" the unnecessary assignment started overwriting already assigned "size" member of the passed structure with an incorrect value. Fixes: 14a2de14dc0619bf9 ("media: s5p-jpeg: Don't use temporary structure in s5p_jpeg_buf_queue") Signed-off-by: Andrzej Pietrasiewicz Signed-off-by: Sylwester Nawrocki Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p-jpeg/jpeg-core.c index 4cef4b8c6584..c00e3a19d7f5 100644 --- a/drivers/media/platform/s5p-jpeg/jpeg-core.c +++ b/drivers/media/platform/s5p-jpeg/jpeg-core.c @@ -1264,7 +1264,7 @@ static bool s5p_jpeg_parse_hdr(struct s5p_jpeg_q_data *result, } result->sof = sof; result->sof_len = sof_len; - result->size = result->components = components; + result->components = components; return true; }