aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
diff options
context:
space:
mode:
authorLuben Tuikov <[email protected]>2021-04-14 15:17:01 +0000
committerAlex Deucher <[email protected]>2021-04-15 20:32:44 +0000
commit546aa546b05aef582956f44ad917c0eee2cb8027 (patch)
treecf0d75cfc8db14dab4bc92fe977735c0d5db1f3f /drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c
parentdrm/amd/amdgpu: add ASPM support on polaris (diff)
downloadkernel-546aa546b05aef582956f44ad917c0eee2cb8027.tar.gz
kernel-546aa546b05aef582956f44ad917c0eee2cb8027.zip
drm/amdgpu: Add double-sscanf but invert
Add back the double-sscanf so that both decimal and hexadecimal values could be read in, but this time invert the scan so that hexadecimal format with a leading 0x is tried first, and if that fails, then try decimal format. Also use a logical-AND instead of nesting double if-conditional. See commit "drm/amdgpu: Fix a bug for input with double sscanf" Cc: Alexander Deucher <[email protected]> Cc: Hawking Zhang <[email protected]> Signed-off-by: Luben Tuikov <[email protected]> Reviewed-by: John Clements <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_dma_buf.c')
0 files changed, 0 insertions, 0 deletions