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

Commit 663e9950 authored by Harsh Sahu's avatar Harsh Sahu
Browse files

msm: mdss: fix null pointer dereferencing



Current driver checks if the address of start pointer is zero. But
in cases when start pointer is NULL this check will result in null
pointer dereferencing. This change adds an additioanl check on the
start pointer to avoid null pointer dereferencing.

CRs-fixed: 2035100
Change-Id: Ic86c9e73cd676cbf8680f5b7266ee3829f4ccbd2
Signed-off-by: default avatarHarsh Sahu <hsahu@codeaurora.org>
parent d5311c5d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1095,7 +1095,7 @@ static int mdss_mdp_get_img(struct msmfb_data *img,
			return ret;
		}
	}
	if (!*start) {
	if (start && !*start) {
		pr_err("start address is zero!\n");
		mdss_mdp_put_img(data, rotator, dir);
		return -ENOMEM;