aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorDale Zhao <[email protected]>2021-01-27 12:04:52 +0000
committerAlex Deucher <[email protected]>2021-02-09 20:48:28 +0000
commite75f5634630c10de86df63ce6893cc1165dff108 (patch)
tree847d3f08e0bfaf6901ac43adea28aef457c60281 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parentdrm/amd/display: DIO Supported for virtual displays (diff)
downloadkernel-e75f5634630c10de86df63ce6893cc1165dff108.tar.gz
kernel-e75f5634630c10de86df63ce6893cc1165dff108.zip
drm/amd/display: fix type mismatch error for return variable
It is possible for ret_vsnprintf to be assigned negative value in error cases. As an unsigned variable, negative values which are stored in their 2's complement form gets treated as a positive number. This will led to treating bad cases as good ones. eg: -1 gets stored as 0xFFFFFFFF on a 32 bit system Signed-off-by: Dale Zhao <[email protected]> Reviewed-by: Yongqiang Sun <[email protected]> Acked-by: Anson Jacob <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions