diff options
| author | Dan Carpenter <[email protected]> | 2022-03-07 13:31:05 +0000 |
|---|---|---|
| committer | Rob Clark <[email protected]> | 2022-03-08 17:49:00 +0000 |
| commit | aaa743d838da81ea173856c70caf96d8cdcbc320 (patch) | |
| tree | 6b7f4522ef0d6a70d425b69f9c7fcedc44c290ff /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | drm/msm: Fix dirtyfb refcounting (diff) | |
| download | kernel-aaa743d838da81ea173856c70caf96d8cdcbc320.tar.gz kernel-aaa743d838da81ea173856c70caf96d8cdcbc320.zip | |
drm/msm/adreno: fix cast in adreno_get_param()
These casts need to happen before the shift. The only time it would
matter would be if "rev.core" is >= 128. In that case the sign bit
would be extended and we do not want that.
Fixes: afab9d91d872 ("drm/msm/adreno: Expose speedbin to userspace")
Signed-off-by: Dan Carpenter <[email protected]>
Reviewed-by: Akhil P Oommen <[email protected]>
Link: https://lore.kernel.org/r/20220307133105.GA17534@kili
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions
