Merge "qseecom: release memory when failed to get fw size"
This commit is contained in:
commit
9b0b7adacb
1 changed files with 1 additions and 0 deletions
|
@ -4432,6 +4432,7 @@ int qseecom_start_app(struct qseecom_handle **handle,
|
||||||
strlcpy(entry->app_name, app_name, MAX_APP_NAME_SIZE);
|
strlcpy(entry->app_name, app_name, MAX_APP_NAME_SIZE);
|
||||||
if (__qseecom_get_fw_size(app_name, &fw_size, &app_arch)) {
|
if (__qseecom_get_fw_size(app_name, &fw_size, &app_arch)) {
|
||||||
ret = -EIO;
|
ret = -EIO;
|
||||||
|
kfree(entry);
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
entry->app_arch = app_arch;
|
entry->app_arch = app_arch;
|
||||||
|
|
Loading…
Add table
Reference in a new issue