aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
diff options
context:
space:
mode:
authorKrunoslav Kovac <[email protected]>2020-08-06 21:54:47 +0000
committerAlex Deucher <[email protected]>2020-08-17 18:08:59 +0000
commit5ab7943187f22b572fd12d517bd699771b88ce91 (patch)
tree5b5feac009fb01c20a5baf08ef59f994ce5a5176 /drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
parentdrm/amd/display: Reset scrambling on Test Pattern (diff)
downloadkernel-5ab7943187f22b572fd12d517bd699771b88ce91.tar.gz
kernel-5ab7943187f22b572fd12d517bd699771b88ce91.zip
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: [email protected] Signed-off-by: Krunoslav Kovac <[email protected]> Reviewed-by: Anthony Koo <[email protected]> Acked-by: Rodrigo Siqueira <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c')
0 files changed, 0 insertions, 0 deletions