Merge "msm: mdss: fix null pointer dereferencing"

This commit is contained in:
Linux Build Service Account 2017-05-10 23:03:54 -07:00 committed by Gerrit - the friendly Code Review server
commit 00ddc986bb

View file

@ -1095,7 +1095,7 @@ static int mdss_mdp_get_img(struct msmfb_data *img,
return ret; return ret;
} }
} }
if (!*start) { if (start && !*start) {
pr_err("start address is zero!\n"); pr_err("start address is zero!\n");
mdss_mdp_put_img(data, rotator, dir); mdss_mdp_put_img(data, rotator, dir);
return -ENOMEM; return -ENOMEM;