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

Commit 7e38a577 authored by Kota Priyanka's avatar Kota Priyanka
Browse files

qbt1000: Remove redundant check on qseecom buffer size



Add changes to remove redundant size check on qseecom
buffer.

Change-Id: I951ca82b81f38357edcbfd3f2e992c6b16cba517
Signed-off-by: default avatarKota Priyanka <kotap@codeaurora.org>
parent 624ad22c
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -210,11 +210,6 @@ static int send_tz_cmd(struct qbt1000_drvdata *drvdata,
		goto end;
	}

	if (aligned_cmd - cmd + cmd_len > g_app_buf_size) {
		rc = -ENOMEM;
		goto end;
	}

	if (is_user_space) {
		rc = copy_from_user(aligned_cmd, (void __user *)cmd,
				cmd_len);