Skip to content

Commit

Permalink
drm/amd/display: Unlock on error path in dm_handle_mst_sideband_msg_r…
Browse files Browse the repository at this point in the history
…eady_event()

[ Upstream commit 38ac4e8 ]

This error path needs to unlock the "aconnector->handle_mst_msg_ready"
mutex before returning.

Fixes: 4f6d9e3 ("drm/amd/display: Add polling method to handle MST reply packet")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Dan Carpenter authored and gregkh committed Aug 3, 2023
1 parent 5c58d12 commit e139cc2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ void dm_handle_mst_sideband_msg_ready_event(

if (retry == 3) {
DRM_ERROR("Failed to ack MST event.\n");
return;
break;
}

drm_dp_mst_hpd_irq_send_new_request(&aconnector->mst_mgr);
Expand Down

0 comments on commit e139cc2

Please sign in to comment.