Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b0b7ada authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 25c683b5 d250be84
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -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;