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

Commit 9e6d0416 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "disp: msm: dp: check branch device when adding mst sim port"

parents 2ea0c064 322e50ae
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -267,6 +267,10 @@ static void dp_mst_sim_add_port(struct dp_mst_private *mst,
	struct drm_dp_mst_port *port;

	mstb = mst->mst_mgr.mst_primary;
	if (!mstb) {
		DP_ERR("Unable to add port. mst branch device was destroyed\n");
		return;
	}

	port = kzalloc(sizeof(*port), GFP_KERNEL);
	if (!port)