Commit 56d2233c authored by Simon Ser's avatar Simon Ser Committed by Greg Kroah-Hartman
Browse files

drm/dp_mst: fix drm_dp_dpcd_read return value checks



[ Upstream commit 2ac6cdd5 ]

drm_dp_dpcd_read returns the number of bytes read. The previous code
would print garbage on DPCD error, and would exit with on error on
success.

Signed-off-by: default avatarSimon Ser <contact@emersion.fr>
Fixes: cb897542 ("drm/dp_mst: Fix W=1 warnings")
Cc: Lyude Paul <lyude@redhat.com>
Cc: Benjamin Gaignard <benjamin.gaignard@st.com>
Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/473500/


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent fe6eb3d0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment