aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2025-01-08 09:35:57 +0000
committerChun-Kuang Hu <[email protected]>2025-03-12 23:17:22 +0000
commitdcb166ee43c3d594e7b73a24f6e8cf5663eeff2c (patch)
tree8e08af8ee5966ae8d68392e786797aee701a217a /drivers/gpu/drm/amd/amdgpu
parentdrm/mediatek: add MT8365 SoC support (diff)
downloadkernel-dcb166ee43c3d594e7b73a24f6e8cf5663eeff2c.tar.gz
kernel-dcb166ee43c3d594e7b73a24f6e8cf5663eeff2c.zip
drm/mediatek: dsi: fix error codes in mtk_dsi_host_transfer()
There is a type bug because the return statement: return ret < 0 ? ret : recv_cnt; The issue is that ret is an int, recv_cnt is a u32 and the function returns ssize_t, which is a signed long. The way that the type promotion works is that the negative error codes are first cast to u32 and then to signed long. The error codes end up being positive instead of negative and the callers treat them as success. Fixes: 81cc7e51c4f1 ("drm/mediatek: Allow commands to be sent during video mode") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/r/[email protected]/ Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Mattijs Korpershoek <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Reviewed-by: CK Hu <[email protected]> Link: https://patchwork.kernel.org/project/dri-devel/patch/[email protected]/ Signed-off-by: Chun-Kuang Hu <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
0 files changed, 0 insertions, 0 deletions