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

Commit 86e17dc3 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: Fix potential null pointer dereference"

parents edcc07ba 41a86ae2
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -6375,6 +6375,15 @@ void mdss_mdp_footswitch_ctrl_handler(bool on)
static void mdss_mdp_signal_retire_fence(struct msm_fb_data_type *mfd,
					 int retire_cnt)
{
	struct mdss_overlay_private *mdp5_data;

	if (!mfd)
		return;

	mdp5_data = mfd_to_mdp5_data(mfd);
	if (!mdp5_data->ctl || !mdp5_data->ctl->ops.remove_vsync_handler)
		return;

	__vsync_retire_signal(mfd, retire_cnt);
	pr_debug("Signaled (%d) pending retire fence\n", retire_cnt);
}