summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu
diff options
context:
space:
mode:
authorKrunoslav Kovac <Krunoslav.Kovac@amd.com>2020-08-06 17:54:47 -0400
committerAlex Deucher <alexander.deucher@amd.com>2020-08-18 18:01:21 -0400
commitd2e59d0ff4c44d1f6f8ed884a5bea7d1bb7fd98c (patch)
tree848e6e3b5e1c708c555ad9aca80db30034f760db /drivers/gpu/drm/amd/amdgpu
parentdb0473f62438e075b6832fd1490fd06d03c59372 (diff)
drm/amd/display: fix pow() crashing when given base 0
[Why&How] pow(a,x) is implemented as exp(x*log(a)). log(0) will crash. So return 0^x = 0, unless x=0, convention seems to be 0^0 = 1. Cc: stable@vger.kernel.org Signed-off-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com> Reviewed-by: Anthony Koo <Anthony.Koo@amd.com> Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
0 files changed, 0 insertions, 0 deletions