[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <b0331a71-e316-28df-43bb-790ec748fafa@collabora.com>
Date: Tue, 14 Feb 2023 11:10:54 +0100
From: AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>
To: Jiasheng Jiang <jiasheng@...as.ac.cn>, mchehab@...nel.org,
matthias.bgg@...il.com, moudy.ho@...iatek.com,
daoyuan.huang@...iatek.com, hverkuil-cisco@...all.nl
Cc: linux-media@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org
Subject: Re: [PATCH v4] media: platform: mtk-mdp3: Add missing check and free
for ida_alloc
Il 09/02/23 14:52, Jiasheng Jiang ha scritto:
> Add the check for the return value of the ida_alloc in order to avoid
> NULL pointer dereference.
> Moreover, free allocated "ctx->id" if mdp_m2m_open fails later in order
> to avoid memory leak.
>
> Fixes: 61890ccaefaf ("media: platform: mtk-mdp3: add MediaTek MDP3 driver")
> Signed-off-by: Jiasheng Jiang <jiasheng@...as.ac.cn>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
Powered by blists - more mailing lists