Skip to content
Commit 8bd4eff9 authored by Beleswar Padhi's avatar Beleswar Padhi Committed by Xulin Sun
Browse files

remoteproc: k3-r5: Jump to error handling labels in start/stop errors

commit 188d152c0bb70f2fc12d8e3a163f2c594aa0032c from
git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git



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: 3c8a9066 ("remoteproc: k3-r5: Do not allow core1 to power up before core0 via sysfs")
Signed-off-by: default avatarBeleswar Padhi <b-padhi@ti.com>
Link: https://lore.kernel.org/r/20240506141849.1735679-1-b-padhi@ti.com


Signed-off-by: default avatarMathieu Poirier <mathieu.poirier@linaro.org>
Signed-off-by: default avatarXulin Sun <xulin.sun@windriver.com>
parent ff75f4bb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment