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

Commit e1805202 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: Add null check for dma buffer memory"

parents f77dbfbf 274a96e4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1010,7 +1010,7 @@ static int mdss_mdp_get_img(struct msmfb_data *img,
	} else if (iclient) {
		if (mdss_mdp_is_map_needed(mdata, data)) {
			data->srcp_dma_buf = dma_buf_get(img->memory_id);
			if (IS_ERR(data->srcp_dma_buf)) {
			if (IS_ERR_OR_NULL(data->srcp_dma_buf)) {
				pr_err("error on ion_import_fd\n");
				ret = PTR_ERR(data->srcp_dma_buf);
				data->srcp_dma_buf = NULL;