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

Commit 69b37fbc authored by Tatenda Chipeperekwa's avatar Tatenda Chipeperekwa
Browse files

drm/msm/dp: validate power/aux submodule pointers in unbind path



Validate the power/aux submodule pointers before calling the
respective cleanup functions since these submodules might not
have been initialized successfully during boot time.

Change-Id: I195ef84beff090eeb5b6e996883fdd503406b2db
Signed-off-by: default avatarTatenda Chipeperekwa <tatendac@codeaurora.org>
parent 5870a109
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -372,7 +372,9 @@ static void dp_display_unbind(struct device *dev, struct device *master,
		return;
	}

	if (dp->power)
		(void)dp->power->power_client_deinit(dp->power);
	if (dp->aux)
		(void)dp->aux->drm_aux_deregister(dp->aux);
	dp_display_deinitialize_hdcp(dp);
}