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

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

Merge "msm: mdss: dp: add null check for token value"

parents ad45b289 0a3e9cc8
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2339,6 +2339,11 @@ static int mdss_dp_parse_config_value(char const *buf, char const *name,
	if (buf1) {
		buf1 = buf1 + strlen(name);
		token = strsep(&buf1, " ");
		if (!token) {
			pr_err("strsep failed\n");
			ret = -EINVAL;
			goto end;
		}
		ret = kstrtou32(token, 10, val);
		if (ret) {
			pr_err("kstrtoint failed. ret=%d\n", (int)ret);