diff options
author | Dan Carpenter <[email protected]> | 2024-05-04 14:26:46 +0300 |
---|---|---|
committer | Mathieu Poirier <[email protected]> | 2024-05-06 13:30:08 -0600 |
commit | 47558cbaa842c4561d08512e531b88cc92d35837 (patch) | |
tree | 16170eae7729fba949b7dab8ba148a360446f409 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 3c8a9066d584f5010b6f4ba03bf6b19d28973d52 (diff) |
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: c08a82494500 ("remoteproc: mediatek: Support setting DRAM and IPI shared buffer sizes")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mathieu Poirier <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions