aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/checkstack.pl
diff options
context:
space:
mode:
authorMario Limonciello <mario.limonciello@amd.com>2025-01-21 16:03:52 -0600
committerAlex Deucher <alexander.deucher@amd.com>2025-04-21 11:27:29 -0400
commit7e40f64896e8e3dca471e287672db5ace12ea0be (patch)
tree8237a09a8bccfe57ac1a86acc13c8ed43deefc32 /scripts/checkstack.pl
parentdrm/amd/display: Implement HDMI Read Request (diff)
downloadlinux-7e40f64896e8e3dca471e287672db5ace12ea0be.tar.gz
linux-7e40f64896e8e3dca471e287672db5ace12ea0be.zip
drm/amd/display: Avoid divide by zero by initializing dummy pitch to 1
[Why] If the dummy values in `populate_dummy_dml_surface_cfg()` aren't updated then they can lead to a divide by zero in downstream callers like CalculateVMAndRowBytes() [How] Initialize dummy value to a value to avoid divide by zero. Reviewed-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> Signed-off-by: Zaeem Mohamed <zaeem.mohamed@amd.com> Tested-by: Mark Broadworth <mark.broadworth@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'scripts/checkstack.pl')
0 files changed, 0 insertions, 0 deletions