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

Commit 621ded97 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 null check for user length" into dev/msm-4.14-display

parents 54af5ac8 63769636
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1166,6 +1166,9 @@ static ssize_t debugfs_esd_trigger_check(struct file *file,
	if (user_len > sizeof(u32))
		return -EINVAL;

	if (!user_len || !user_buf)
		return -EINVAL;

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