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

Commit 156795ee authored by Arun KS's avatar Arun KS
Browse files

msm: ipa: Fix copy_from_user() size check



This patch do the size check in function copy_from_user().

Change-Id: I0b5151030a45fe1915dec991bb56396e50bd1d33
Signed-off-by: default avatarArun KS <arunks@codeaurora.org>
parent b62aaff3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6089,7 +6089,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");