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

Commit c387a631 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm/dsi-staging: Add range check in debugfs_dump_info_read"

parents 1ea7f3ff dd8b5f62
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1036,6 +1036,9 @@ static ssize_t debugfs_dump_info_read(struct file *file,
			"\tClock master = %s\n",
			display->ctrl[display->clk_master_idx].ctrl->name);

	if (len > user_len)
		len = user_len;

	if (copy_to_user(user_buf, buf, len)) {
		kfree(buf);
		return -EFAULT;