]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Check UnboundedRequestEnabled's value
authorAlex Hung <alex.hung@amd.com>
Fri, 7 Jun 2024 03:23:39 +0000 (21:23 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Jun 2024 16:46:14 +0000 (12:46 -0400)
commita7b38c7852093385d0605aa3c8a2efd6edd1edfd
treeec5909974103a1eba80d607d5ca21c3bbd525e38
parent391c6fb490b069b4f7c4620675c98f2d6073e050
drm/amd/display: Check UnboundedRequestEnabled's value

CalculateSwathAndDETConfiguration_params_st's UnboundedRequestEnabled
is a pointer (i.e. dml_bool_t *UnboundedRequestEnabled), and thus
if (p->UnboundedRequestEnabled) checks its address, not bool value.

This fixes 1 REVERSE_INULL issue reported by Coverity.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2/display_mode_core.c