diff options
| author | Imre Deak <[email protected]> | 2024-12-03 16:02:23 +0000 |
|---|---|---|
| committer | Imre Deak <[email protected]> | 2024-12-05 14:49:41 +0000 |
| commit | 59ca0e1c97c5d752f85ca2922ff258ff5e62bc73 (patch) | |
| tree | e42e8d267d974d3023ac74c4e8b1c303b0d34008 /drivers/gpu/drm/display/drm_dp_mst_topology.c | |
| parent | drm/dp_mst: Reset message rx state after OOM in drm_dp_mst_handle_up_req() (diff) | |
| download | kernel-59ca0e1c97c5d752f85ca2922ff258ff5e62bc73.tar.gz kernel-59ca0e1c97c5d752f85ca2922ff258ff5e62bc73.zip | |
drm/dp_mst: Use reset_msg_rx_state() instead of open coding it
Use reset_msg_rx_state() in drm_dp_mst_handle_up_req() instead of
open-coding it.
Cc: Lyude Paul <[email protected]>
Reviewed-by: Lyude Paul <[email protected]>
Signed-off-by: Imre Deak <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/display/drm_dp_mst_topology.c')
| -rw-r--r-- | drivers/gpu/drm/display/drm_dp_mst_topology.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/display/drm_dp_mst_topology.c b/drivers/gpu/drm/display/drm_dp_mst_topology.c index e5713e3be80e..dc4446d589e7 100644 --- a/drivers/gpu/drm/display/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/display/drm_dp_mst_topology.c @@ -4188,7 +4188,7 @@ static int drm_dp_mst_handle_up_req(struct drm_dp_mst_topology_mgr *mgr) out_put_primary: drm_dp_mst_topology_put_mstb(mst_primary); out_clear_reply: - memset(&mgr->up_req_recv, 0, sizeof(struct drm_dp_sideband_msg_rx)); + reset_msg_rx_state(&mgr->up_req_recv); return ret; } |
