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

Commit 39dd327e authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa: Fix copy_from_user() size check"

parents ebf0e411 156795ee
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6107,7 +6107,7 @@ static ssize_t ipa3_write(struct file *file, const char __user *buf,
	if (sizeof(dbg_buff) < count + 1)
		return -EFAULT;

	missing = copy_from_user(dbg_buff, buf, count);
	missing = copy_from_user(dbg_buff, buf, min(sizeof(dbg_buff), count));

	if (missing) {
		IPAERR("Unable to copy data from user\n");