aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorMatthew R. Ochs <[email protected]>2015-10-21 15:14:01 -0500
committerJames Bottomley <[email protected]>2015-10-30 17:14:41 +0900
commite5ce067b7b6e123a88929a18a8a58811ffcec279 (patch)
tree605d97ad36ed048531a6326bf85644c8f3f50670 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parent964497b3bf3fed0a1db9dabe9fe080853230e5a7 (diff)
cxlflash: Fix AFU version access/storage and add check
The AFU version is stored as a non-terminated string of bytes within a 64-bit little-endian register. Presently the value is read directly (no MMIO accessor) and is stored in a buffer that is not big enough to contain a NULL terminator. Additionally the version obtained is not evaluated against a known value to prevent usage with unsupported AFUs. All of these deficiencies can lead to a variety of problems. To remedy, use the correct MMIO accessor to read the version value into a null-terminated buffer and add a check to prevent an incompatible AFU from being used with this driver. Signed-off-by: Matthew R. Ochs <[email protected]> Signed-off-by: Manoj N. Kumar <[email protected]> Reviewed-by: Brian King <[email protected]> Reviewed-by: Daniel Axtens <[email protected]> Reviewed-by: Tomas Henzl <[email protected]> Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions