Files
linux/drivers/gpu/drm
Wenjing Liu 2b104fc31b 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>
2026-04-17 15:23:49 -04:00
..
2025-10-31 10:34:52 +02:00
2026-03-10 09:42:09 +08:00
2026-03-11 11:18:31 +01:00
2026-03-11 11:18:31 +01:00
2025-10-31 10:34:52 +02:00
2026-04-07 12:36:31 +02:00
2026-03-17 17:50:49 +01:00
2026-03-13 18:02:32 -03:00
2026-04-13 10:16:13 +03:00
2026-04-07 12:36:31 +02:00
2025-10-31 10:34:52 +02:00
2026-04-07 12:36:31 +02:00
2026-03-12 07:23:23 -07:00