diff options
| author | Dan Carpenter <[email protected]> | 2024-05-04 11:26:46 +0000 |
|---|---|---|
| committer | Mathieu Poirier <[email protected]> | 2024-05-06 19:30:08 +0000 |
| commit | 47558cbaa842c4561d08512e531b88cc92d35837 (patch) | |
| tree | 16170eae7729fba949b7dab8ba148a360446f409 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | remoteproc: k3-r5: Do not allow core1 to power up before core0 via sysfs (diff) | |
| download | kernel-47558cbaa842c4561d08512e531b88cc92d35837.tar.gz kernel-47558cbaa842c4561d08512e531b88cc92d35837.zip | |
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 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions
