diff options
| author | Dan Carpenter <[email protected]> | 2017-07-11 19:53:29 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2017-07-14 15:06:40 +0000 |
| commit | 1d11ee89862ae7c1932e8b742fbb8340598f8874 (patch) | |
| tree | 8eeefcdb8e4241e50315b892be5e472fffde1d9f /drivers/gpu/drm/amd/amdgpu/si_dpm.c | |
| parent | drm/amdgpu: implement si_read_bios_from_rom (diff) | |
| download | kernel-1d11ee89862ae7c1932e8b742fbb8340598f8874.tar.gz kernel-1d11ee89862ae7c1932e8b742fbb8340598f8874.zip | |
drm/amdgpu: Off by one sanity checks
This is just future proofing code, not something that can be triggered
in real life. We're testing to make sure we don't shift wrap when we
do "1ull << i" so "i" has to be in the 0-63 range. If it's 64 then we
have gone too far.
Acked-by: Christian König <[email protected]>
Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/si_dpm.c')
0 files changed, 0 insertions, 0 deletions
