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

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

Merge "drm/msm/dsi-staging: fix buffer overflow errors"

parents 3b897da2 8e354d37
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1302,7 +1302,7 @@ static ssize_t debugfs_esd_trigger_check(struct file *file,
		atomic_read(&display->panel->esd_recovery_pending))
		return user_len;

	buf = kzalloc(user_len, GFP_KERNEL);
	buf = kzalloc(user_len + 1, GFP_KERNEL);
	if (!buf)
		return -ENOMEM;

@@ -1357,7 +1357,7 @@ static ssize_t debugfs_alter_esd_check_mode(struct file *file,
	if (*ppos)
		return 0;

	buf = kzalloc(len, GFP_KERNEL);
	buf = kzalloc(len + 1, GFP_KERNEL);
	if (ZERO_OR_NULL_PTR(buf))
		return -ENOMEM;