]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Run DC_LOG_DC after checking link->link_enc
authorAlex Hung <alex.hung@amd.com>
Fri, 7 Jun 2024 15:21:30 +0000 (09:21 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Jun 2024 21:10:36 +0000 (17:10 -0400)
commit3a82f62b0d9d7687eac47603bb6cd14a50fa718b
tree287c2354f0b9977fbac7c2a436556d508b4ee5e8
parentcd80e7ee47d2fd5c97563c003ff31ce8240ca2d8
drm/amd/display: Run DC_LOG_DC after checking link->link_enc

[WHAT]
The DC_LOG_DC should be run after link->link_enc is checked, not before.

This fixes 1 REVERSE_INULL issue reported by Coverity.

Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/link/link_factory.c