Skip to content
Snippets Groups Projects
Forked from drm / msm
Source project has a limited visibility.
Dmitry Baryshkov's avatar
Dmitry Baryshkov authored
The msm_dp_utils_pack_sdp_header() accepts an unlimited-size u32 pointer
for the header output, while it expects a two-element array. It performs
a sizeof check which is always true on 64-bit platforms (since
sizeof(u32*) is 8) and is always false on 32-bit platforms. It returns
an error code which nobody actually checks.

Fix the function interface to accept u32[2] and return void, skipping
all the checks.

Fixes: 55fb8ffc ("drm/msm/dp: add VSC SDP support for YUV420 over DP")
Signed-off-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: default avatarAbhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/626806/
Link: https://lore.kernel.org/r/20241202-fd-dp-audio-fixup-v2-2-d9187ea96dad@linaro.org


[quic_abhinavk@quicinc.com: minor fix in the commit message]
Signed-off-by: default avatarAbhinav Kumar <quic_abhinavk@quicinc.com>
b047cbe5
History
Name Last commit Last update