[PATCH v2] remoteproc: mtk_scp: Fix a potential double free

Mathieu Poirier mathieu.poirier at linaro.org
Tue Apr 12 10:04:10 PDT 2022


On Mon, Apr 11, 2022 at 10:55:52AM +0200, AngeloGioacchino Del Regno wrote:
> Il 09/04/22 08:27, Christophe JAILLET ha scritto:
> > 'scp->rproc' is allocated using devm_rproc_alloc(), so there is no need
> > to free it explicitly in the remove function.
> > 
> > Fixes: c1407ac1099a ("remoteproc: mtk_scp: Use devm variant of rproc_alloc()")
> > Signed-off-by: Christophe JAILLET <christophe.jaillet at wanadoo.fr>
> 
> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>

Applied.

Thanks,
Mathieu

> 
> 



More information about the Linux-mediatek mailing list