diff options
author | Michael Strauss <michael.strauss@amd.com> | 2022-03-23 16:06:25 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-04-05 10:29:48 -0400 |
commit | 73b1da69f5314d96e1f963468863eaa884ee1030 (patch) | |
tree | cc796e6b4fe557563947968d319ca4168efe31a5 /drivers/gpu/drm/amd/amdkfd | |
parent | 176cd4385aea1e1c1e41c1b8e02764558e4f6a3c (diff) |
drm/amd/display: Check for invalid input params when building scaling params
[WHY]
Function to calculate scaling ratios can be called with invalid plane
src/dest, causing a divide by zero.
[HOW]
Fail building scaling params if plane state src/dest rects are
unpopulated
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Michael Strauss <michael.strauss@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd')
0 files changed, 0 insertions, 0 deletions