diff options
| author | Beleswar Padhi <[email protected]> | 2024-05-06 14:18:49 +0000 |
|---|---|---|
| committer | Mathieu Poirier <[email protected]> | 2024-05-06 19:34:12 +0000 |
| commit | 1dc7242f6ee0c99852cb90676d7fe201cf5de422 (patch) | |
| tree | 614bd8f1d4860e946b70756311b08b201c5631f9 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | remoteproc: mediatek: Fix error code in scp_rproc_init() (diff) | |
| download | kernel-1dc7242f6ee0c99852cb90676d7fe201cf5de422.tar.gz kernel-1dc7242f6ee0c99852cb90676d7fe201cf5de422.zip | |
remoteproc: k3-r5: Jump to error handling labels in start/stop errors
In case of errors during core start operation from sysfs, the driver
directly returns with the -EPERM error code. Fix this to ensure that
mailbox channels are freed on error before returning by jumping to the
'put_mbox' error handling label. Similarly, jump to the 'out' error
handling label to return with required -EPERM error code during the
core stop operation from sysfs.
Fixes: 3c8a9066d584 ("remoteproc: k3-r5: Do not allow core1 to power up before core0 via sysfs")
Signed-off-by: Beleswar Padhi <[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
