Merge "qseecom: release memory when failed to get fw size"

This commit is contained in:
Linux Build Service Account 2017-02-08 14:57:00 -08:00 committed by Gerrit - the friendly Code Review server
commit b6221838be
1 changed files with 1 additions and 0 deletions

View File

@ -4202,6 +4202,7 @@ int qseecom_start_app(struct qseecom_handle **handle,
strlcpy(entry->app_name, app_name, MAX_APP_NAME_SIZE);
if (__qseecom_get_fw_size(app_name, &fw_size, &app_arch)) {
ret = -EIO;
kfree(entry);
goto err;
}
entry->app_arch = app_arch;