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

Commit dd5deff6 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: Avoid NULL pointer access"

parents ef957d0b 0441d97b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -420,6 +420,10 @@ static struct mdss_mdp_wb_data *get_user_node(struct msm_fb_data_type *mfd,
		struct ion_client *iclient = mdss_get_ionclient();
		struct ion_handle *ihdl;

		if (IS_ERR_OR_NULL(iclient)) {
			pr_err("unable to get mdss ion client\n");
			return NULL;
		}
		ihdl = ion_import_dma_buf(iclient, data->memory_id);
		if (IS_ERR_OR_NULL(ihdl)) {
			pr_err("unable to import fd %d\n", data->memory_id);