]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amd/display: Check denominator crb_pipes before used
authorAlex Hung <alex.hung@amd.com>
Tue, 18 Jun 2024 22:19:48 +0000 (16:19 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 1 Jul 2024 20:06:53 +0000 (16:06 -0400)
commitea79068d4073bf303f8203f2625af7d9185a1bc6
tree37f5c3cda8d8dd61bd9e50a0f4852f99ee956d69
parent116a678f3a9abc24f5c9d2525b7393d18d9eb58e
drm/amd/display: Check denominator crb_pipes before used

[WHAT & HOW]
A denominator cannot be 0, and is checked before used.

This fixes 2 DIVIDE_BY_ZERO issues reported by Coverity.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Jerry Zuo <jerry.zuo@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/resource/dcn315/dcn315_resource.c