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

Commit 84cbba33 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "qbt1000: Remove redundant check on qseecom buffer size"

parents e7e2d51d 7e38a577
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);