summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorWenjing Liu <wenjing.liu@amd.com>2026-03-26 12:00:34 -0400
committerAlex Deucher <alexander.deucher@amd.com>2026-04-17 15:23:49 -0400
commit2b104fc31be0607c04188fadbd4a9fa5b50f3b99 (patch)
treed90caba6ff3987bbe4c9a82a272c2275912041fc /include/linux
parentd3a549f4df7864bca8612c8bcfce1ec72b2874fb (diff)
drm/amd/display: fix math_mod() using arg1 instead of arg2
[Why] math_mod() multiplied by arg1 instead of arg2, returning a wrong result for any non-trivial modulo operation. [How] Replace arg1 with arg2 in the subtraction term to correctly implement fmod(arg1, arg2). Cc: Mario Limonciello <mario.limonciello@amd.com> Cc: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org Reviewed-by: Dillon Varone <dillon.varone@amd.com> Signed-off-by: Wenjing Liu <wenjing.liu@amd.com> Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com> Tested-by: Dan Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions