[<prev] [next>] [day] [month] [year] [list]
Message-ID: <ad088fd1-d96e-76df-4c9d-07e0929813f7@collabora.com>
Date: Mon, 17 Apr 2023 09:44:39 +0200
From: AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>
To: Markus Elfring <Markus.Elfring@....de>,
kernel-janitors@...r.kernel.org,
linux-mediatek@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org, linux-media@...r.kernel.org,
Andrew-CT Chen <andrew-ct.chen@...iatek.com>,
Ezequiel Garcia <ezequiel@...guardiasur.com.ar>,
Guo Zhengkui <guozhengkui@...o.com>,
Hans Verkuil <hverkuil-cisco@...all.nl>,
Haowen Bai <baihaowen@...zu.com>,
Matthias Brugger <matthias.bgg@...il.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Mingjia Zhang <mingjia.zhang@...iatek.com>,
Tiffany Lin <tiffany.lin@...iatek.com>,
Xiaoyong Lu <xiaoyong.lu@...iatek.com>,
Yunfei Dong <yunfei.dong@...iatek.com>
Cc: cocci@...ia.fr, LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] media: mediatek: vcodec: Move a variable assignment
behind condition checks in vdec_vp9_slice_single_decode()
Il 14/04/23 20:30, Markus Elfring ha scritto:
> Date: Fri, 14 Apr 2023 20:07:01 +0200
>
> The address of a data structure member was determined before
> a corresponding null pointer check in the implementation of
> the function “vdec_vp9_slice_single_decode”.
>
> Thus avoid the risk for undefined behaviour by moving the assignment
> for the variable “pfc” behind some condition checks.
>
> This issue was detected by using the Coccinelle software.
>
> Fixes: b0f407c19648ae9110c932c91d6e1b9381ec0aeb ("media: mediatek: vcodec: add vp9 decoder driver for mt8186")
> Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
Powered by blists - more mailing lists