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

Commit a491e2f4 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

drm/msm: mdp5: Correctly return ERR_PTR for mdp5_cfg_init



The caller for mdp5_cfg_init expects a valid pointer or
a ERR_PTR encoded error.  Returning NULL leads to a kernel
oops.

Change-Id: Ic0dedbad44e37bdbc458fad6713d42ab249428d8
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent a808f989
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -547,7 +547,7 @@ fail:
	if (cfg_handler)
		mdp5_cfg_destroy(cfg_handler);

	return NULL;
	return ERR_PTR(ret);
}

static struct mdp5_cfg_platform *mdp5_get_config(struct platform_device *dev)