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

Commit 5230ade6 authored by Satya Rama Aditya Pinapala's avatar Satya Rama Aditya Pinapala Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/dsi-staging: alter length to avoid stepping out of bounds



Limit max length of buffer while read misr configuration
from sysfs node.

Change-Id: I9adfd51da7ae77201cf6c0cf6e9af68785c7a063
Signed-off-by: default avatarSatya Rama Aditya Pinapala <psraditya30@codeaurora.org>
parent 84797bfc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1134,7 +1134,7 @@ static ssize_t debugfs_misr_read(struct file *file,
		goto error;
	}

	if (copy_to_user(user_buf, buf, len)) {
	if (copy_to_user(user_buf, buf, max_len)) {
		rc = -EFAULT;
		goto error;
	}