mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
remoteproc: fix missing fault indication in error-path
If rproc_find_rsc_table() fails, rproc_fw_boot() must set return-value before jumping to clean_up label. Otherwise no error value is returned. Signed-off-by: Sjur Brændeland <[email protected]> Signed-off-by: Ohad Ben-Cohen <[email protected]> Cc: [email protected]
This commit is contained in:
parent
e981f6d41a
commit
30338cf09f
1 changed files with 3 additions and 1 deletions
|
|
@ -1041,8 +1041,10 @@ static int rproc_fw_boot(struct rproc *rproc, const struct firmware *fw)
|
|||
|
||||
/* look for the resource table */
|
||||
table = rproc_find_rsc_table(rproc, fw->data, fw->size, &tablesz);
|
||||
if (!table)
|
||||
if (!table) {
|
||||
ret = -EINVAL;
|
||||
goto clean_up;
|
||||
}
|
||||
|
||||
/* handle fw resources which are required to boot rproc */
|
||||
ret = rproc_handle_boot_rsc(rproc, table, tablesz);
|
||||
|
|
|
|||
Loading…
Reference in a new issue