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

Commit a98f305d authored by Yashwanth's avatar Yashwanth
Browse files

disp: msm: add a early return check in msm lastclose



This change adds an early return check in msm_lastclose
if kms module is not initialized by that time.

Change-Id: If110e3d931fb795e63647cee2b025075f32eda58
Signed-off-by: default avatarYashwanth <yvulapu@codeaurora.org>
parent b4da1836
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -1021,10 +1021,11 @@ static void msm_lastclose(struct drm_device *dev)

	/* check for splash status before triggering cleanup
	 * if we end up here with splash status ON i.e before first
	 * commit then ignore the last close call
	 * commit then ignore the last close call. Also, ignore
	 * if kms module is not yet initialized.
	 */
	if (kms && kms->funcs && kms->funcs->check_for_splash
		&& kms->funcs->check_for_splash(kms))
	if (!kms || (kms && kms->funcs && kms->funcs->check_for_splash
		&& kms->funcs->check_for_splash(kms)))
		return;

	/*