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

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

Merge "qseecom: Change whitelist_support flag to false if TZ failed to check"

parents 707debdb 4a3e522b
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -7141,8 +7141,10 @@ static int qseecom_open(struct inode *inode, struct file *file)
	atomic_set(&data->ioctl_count, 0);

	data->sglistinfo_ptr = kzalloc(SGLISTINFO_TABLE_SIZE, GFP_KERNEL);
	if (!(data->sglistinfo_ptr))
	if (!(data->sglistinfo_ptr)) {
		kzfree(data);
		return -ENOMEM;
	}
	return ret;
}

@@ -8006,8 +8008,10 @@ static int qseecom_check_whitelist_feature(void)
		qseecom.whitelist_support = true;
		ret = 0;
	} else {
		pr_err("Failed to check whitelist: ret = %d, result = 0x%x\n",
		pr_info("Check whitelist with ret = %d, result = 0x%x\n",
			ret, resp.result);
		qseecom.whitelist_support = false;
		ret = 0;
	}
	kfree(buf);
	return ret;