From: jsg Date: Mon, 27 Mar 2023 07:32:07 +0000 (+0000) Subject: drm/display/dp_mst: Fix down/up message handling after sink disconnect X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3b10c59534a68700bb1e2654ea519e3446b269fb;p=openbsd drm/display/dp_mst: Fix down/up message handling after sink disconnect From Imre Deak b30fcedeba643ca16eaa6212c1245598b7cd830d in linux-6.1.y/6.1.18 1d082618bbf3b6755b8cc68c0a8122af2842d593 in mainline linux --- diff --git a/sys/dev/pci/drm/display/drm_dp_mst_topology.c b/sys/dev/pci/drm/display/drm_dp_mst_topology.c index 3d4c084f389..9f5ce28ff1b 100644 --- a/sys/dev/pci/drm/display/drm_dp_mst_topology.c +++ b/sys/dev/pci/drm/display/drm_dp_mst_topology.c @@ -3654,6 +3654,9 @@ int drm_dp_mst_topology_mgr_set_mst(struct drm_dp_mst_topology_mgr *mgr, bool ms drm_dp_dpcd_writeb(mgr->aux, DP_MSTM_CTRL, 0); ret = 0; mgr->payload_id_table_cleared = false; + + memset(&mgr->down_rep_recv, 0, sizeof(mgr->down_rep_recv)); + memset(&mgr->up_req_recv, 0, sizeof(mgr->up_req_recv)); } out_unlock: