Skip to content
Commit 47558cba authored by Dan Carpenter's avatar Dan Carpenter Committed by Mathieu Poirier
Browse files

remoteproc: mediatek: Fix error code in scp_rproc_init()

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: c08a8249

 ("remoteproc: mediatek: Support setting DRAM and IPI shared buffer sizes")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: default avatarAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/b2114e3c-fa64-4edb-a1ff-d2009e544c3f@moroto.mountain
Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
parent 3c8a9066
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment