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

Commit f51f9a2f authored by Shashank Babu Chinta Venkata's avatar Shashank Babu Chinta Venkata Committed by Gerrit - the friendly Code Review server
Browse files

drm/msm/dsi-staging: Prevent holding mutex on error path



During an error scenario, the current code is holding mutex
and erroring out. Prevent this by releasing the mutex and
appropriately return a valid error code.

Change-Id: I97b3fe2716cc88904317b0573b4ecaff4ef8c8a3
Signed-off-by: default avatarShashank Babu Chinta Venkata <sbchin@codeaurora.org>
parent e7ac403f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -6801,7 +6801,8 @@ int dsi_display_prepare(struct dsi_display *display)
	if (mode->dsi_mode_flags & DSI_MODE_FLAG_DMS) {
		if (display->is_cont_splash_enabled) {
			pr_err("DMS is not supposed to be set on first frame\n");
			return -EINVAL;
			rc = -EINVAL;
			goto error;
		}
		/* update dsi ctrl for new mode */
		rc = dsi_display_pre_switch(display);