Message ID | 1502452201-17171-2-git-send-email-andrzej.p@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 14DE760236 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 11 Aug 2017 11:51:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0482928BEB for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 11 Aug 2017 11:51:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ED76D28C1E; Fri, 11 Aug 2017 11:51:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7C5D028BEB for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 11 Aug 2017 11:51:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-reply-to:Message-id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=ysVeZIeBbOtNM/AHUW3tqdPQLemjKLAe1d7SL2T15NM=; b=cH1pi3cSasx+/1wcBQ281LlyPl MeSyTsNw+5dXVCjHNHsxcBB8b4qJondB+M+7M2lgEH/aaqmGCPJFrjZiu2/+x9x9BiZ6Biw9R4i0n 67W6dDeCaZuUkTASJJwOKwx39uNqvCfjQ6ImBkalXL5kmqJZ3/G3aXGkdwlhMtLxEW5QCfOUt7oN1 mKDN/FJ7G+Il/Hkv+XgbKaTSA1SyybZVqxHK7act19jZLQfxw7WcEvHTqhonSb69CtmyunXabz+WD FQ1xgqZiNT+9vube9IO8pwrSZcifDcVGmQGq2iBctVWXndlaURV8EN9tv69lRoWmjwUpIUrHUUh1q klil8wyA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dg8T4-0007zU-Io; Fri, 11 Aug 2017 11:51:06 +0000 Received: from mailout3.w1.samsung.com ([210.118.77.13]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dg8Sn-0007HJ-Gn for linux-arm-kernel@lists.infradead.org; Fri, 11 Aug 2017 11:50:57 +0000 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OUI00ELLRJPAK30@mailout3.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 11 Aug 2017 12:50:13 +0100 (BST) Received: from eusmges2.samsung.com (unknown [203.254.199.241]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20170811115012eucas1p169625e906e27279bf4d8c4c4c82948e3~ZyFOkzgYZ0106601066eucas1p1q; Fri, 11 Aug 2017 11:50:12 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2.samsung.com (EUCPMTA) with SMTP id 3B.A5.12907.3F99D895; Fri, 11 Aug 2017 12:50:12 +0100 (BST) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20170811115011eucas1p263bb57512af4ce8cee995ecfe92067ca~ZyFN7PNHP0926109261eucas1p2l; Fri, 11 Aug 2017 11:50:11 +0000 (GMT) X-AuditID: cbfec7f1-f793a6d00000326b-bf-598d99f36d9f Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id E8.D7.18832.3F99D895; Fri, 11 Aug 2017 12:50:11 +0100 (BST) Received: from AMDC831.digital.local ([106.116.147.122]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OUI0027SRJH2750@eusync3.samsung.com>; Fri, 11 Aug 2017 12:50:11 +0100 (BST) From: Andrzej Pietrasiewicz <andrzej.p@samsung.com> To: linux-samsung-soc@vger.kernel.org, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/2] media: s5p-jpeg: don't overwrite result's "size" member Date: Fri, 11 Aug 2017 13:50:00 +0200 Message-id: <1502452201-17171-2-git-send-email-andrzej.p@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1502452201-17171-1-git-send-email-andrzej.p@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrHIsWRmVeSWpSXmKPExsWy7djP87pfZvZGGnTvY7SY9bKdxWLjjPWs Fre3bmCxOH9+A7vFpsfXWC16NmxltZhxfh+Txdojd9ktVj+rsOi/eonNgctjx90ljB47Z91l 99i0qpPNY/OSeo8t/UBe35ZVjB6fN8kFsEdx2aSk5mSWpRbp2yVwZdyZ9YWx4DRnxb8DzWwN jJM5uhg5OSQETCQ2PpzLBmGLSVy4tx7I5uIQEljKKNH6YQIrSEJI4DOjxPxFel2MHGANF4/k QoSXMUq0T1CAqG9gkjiw4CUjSIJNwFhi78EOMFtEIEvi9KRGJhCbWeAKk8TP9XogtrCAj8SV 491sIDNZBFQlXq0uAAnzCrhK7Pu4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Yz807GC9tDD7EKMDBqMTD63GoJ1KINbGsuDL3EKMEB7OSCO+sGb2RQrwpiZVVqUX58UWl OanFhxhNgY6ayCwlmpwPjMq8knhDE0NzS0MjYwsLcyMjJXFe9ctNkUIC6YklqdmpqQWpRTB9 TBycUg2MfYdOS064OjvPyPzASWXm+/FBBjpWZqvm/Zfi9j3w+fqy9hWTsrcsSZh8Y4OwnN7v K+uUecNtuWu9qqwWH0k7MMHNbKX190+GLDtYIvwO9vazfHivc/LvBv7Ootsb7x5xv+KgXbdy 9ende/Kjw4ItGo5JSn30vv7q0q8WgZaADY5/7CPXbVT5qsRSnJFoqMVcVJwIAHmyKVeSAgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170811115011eucas1p263bb57512af4ce8cee995ecfe92067ca X-Msg-Generator: CA X-Sender-IP: 182.198.249.179 X-Local-Sender: =?UTF-8?B?QW5kcnplaiBQaWV0cmFzaWV3aWN6G1NSUE9MLUtlcm5lbCAo?= =?UTF-8?B?VFApG+yCvOyEseyghOyekBtTZW5pb3IgU29mdHdhcmUgRW5naW5lZXI=?= X-Global-Sender: =?UTF-8?B?QW5kcnplaiBUb21hc3ogUGlldHJhc2lld2ljehtTUlBPTC1L?= =?UTF-8?B?ZXJuZWwgKFRQKRtTYW1zdW5nIEVsZWN0cm9uaWNzG1NlbmlvciBTb2Z0d2Fy?= =?UTF-8?B?ZSBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG0VIURtDMTBDRDAyQ0QwMjczOTI=?= CMS-TYPE: 201P X-HopCount: 7 X-CMS-RootMailID: 20170811115011eucas1p263bb57512af4ce8cee995ecfe92067ca X-RootMTR: 20170811115011eucas1p263bb57512af4ce8cee995ecfe92067ca References: <1502191352-11595-1-git-send-email-andrzej.p@samsung.com> <1502452201-17171-1-git-send-email-andrzej.p@samsung.com> <CGME20170811115011eucas1p263bb57512af4ce8cee995ecfe92067ca@eucas1p2.samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170811_045050_231563_AB16E69A X-CRM114-Status: GOOD ( 12.89 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Thierry Escande <thierry.escande@collabora.com>, Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>, Mauro Carvalho Chehab <mchehab@osg.samsung.com>, Krzysztof Kozlowski <krzk@kernel.org>, Jacek Anaszewski <jacek.anaszewski@gmail.com>, Andrzej Pietrasiewicz <andrzej.p@samsung.com>, Marek Szyprowski <m.szyprowski@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/media/platform/s5p-jpeg/jpeg-core.c b/drivers/media/platform/s5p-jpeg/jpeg-core.c index 4cef4b8..c00e3a1 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; }
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 the patch media: s5p-jpeg: Don't use temporary structure in s5p_jpeg_buf_queue the unnecessary assignment caused the actually used "size" member of the passed structure to assume a meaningless value. Fixes: 6c96dbbc2aa9f5b4a ("[media] s5p-jpeg: add support for 5433") Fixes: 14a2de14dc0619bf9 ("media: s5p-jpeg: Don't use temporary structure in s5p_jpeg_buf_queue") Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com> --- drivers/media/platform/s5p-jpeg/jpeg-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)