linux/drivers/gpu/drm/amd/display
Nicholas Kazlauskas 570c91d51b drm/amd/display: Use long for signed error code checks in commit planes
[Why]

The type of 'r' is uint32_t and the return codes for both:

- reservation_object_wait_timeout_rcu
- amdgpu_bo_reserve

...are signed. While it works for the latter since the check is
done on != 0 it doesn't work for the former since we check <= 0.

[How]

Make 'r' a long in commit planes so we're not doing any unsigned/signed
conversion here in the first place.

v2: use long instead of int (Christian)

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-05-06 09:36:48 -05:00
..
amdgpu_dm drm/amd/display: Use long for signed error code checks in commit planes 2019-05-06 09:36:48 -05:00
dc Merge branch 'drm-next-5.2' of git://people.freedesktop.org/~agd5f/linux into drm-next 2019-05-03 10:31:07 +10:00
include drm/amd/display: Rename is_hdmi to is_hdmi_tmds type 2019-03-19 15:36:49 -05:00
modules drm/amd/display: Fix and simplify apply_below_the_range() 2019-04-29 14:59:35 -05:00
Kconfig
Makefile
TODO