Unverified Commit 38f5d593 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!9795 drm: bridge: cdns-mhdp8546: Fix possible null pointer dereference

parents 20a14652 4f54607c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1978,6 +1978,9 @@ static void cdns_mhdp_atomic_enable(struct drm_bridge *bridge,
	mhdp_state = to_cdns_mhdp_bridge_state(new_state);

	mhdp_state->current_mode = drm_mode_duplicate(bridge->dev, mode);
	if (!mhdp_state->current_mode)
		return;

	drm_mode_set_name(mhdp_state->current_mode);

	dev_dbg(mhdp->dev, "%s: Enabling mode %s\n", __func__, mode->name);