[PATCH] remoteproc: mediatek: Fix error code in scp_rproc_init()

AngeloGioacchino Del Regno angelogioacchino.delregno at collabora.com
Mon May 6 05:50:25 PDT 2024


Il 04/05/24 13:26, Dan Carpenter ha scritto:
> Set the error code to ERR_PTR(-ENOMEM).  Otherwise if there is an
> allocation failure it leads to a NULL dereference in the caller.
> 
> Fixes: c08a82494500 ("remoteproc: mediatek: Support setting DRAM and IPI shared buffer sizes")
> Signed-off-by: Dan Carpenter <dan.carpenter at linaro.org>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>





More information about the Linux-mediatek mailing list