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

Commit a624f4c1 authored by Samantha Tran's avatar Samantha Tran
Browse files

disp: msm: dp: avoid null pointer access in DP event logs



Move goto call in display port to avoid accessing null pointer
while writing to event logs.

Change-Id: I0bd4ec85821ab07b6ef70c79f77015358c75c085
Signed-off-by: default avatarSamantha Tran <samtran@codeaurora.org>
parent 7e8a5f7e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1175,8 +1175,9 @@ static int dp_display_usbpd_disconnect_cb(struct device *dev)
	if (!dp->debug->sim_mode && !dp->parser->no_aux_switch
	    && !dp->parser->gpio_aux_switch)
		dp->aux->aux_switch(dp->aux, false, ORIENTATION_NONE);
end:

	SDE_EVT32_EXTERNAL(SDE_EVTLOG_FUNC_EXIT, dp->state);
end:
	return rc;
}