aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
diff options
context:
space:
mode:
authorAlexander Lobakin <[email protected]>2020-07-22 22:10:35 +0000
committerDavid S. Miller <[email protected]>2020-07-23 01:19:03 +0000
commit9b6ee3cf95d322ab02e9927f5b08ebc870ca9f1f (patch)
tree08bd8489f541676ab787ef9249beb2a925da2e7e /drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
parentqed: prevent possible double-frees of the chains (diff)
downloadkernel-9b6ee3cf95d322ab02e9927f5b08ebc870ca9f1f.tar.gz
kernel-9b6ee3cf95d322ab02e9927f5b08ebc870ca9f1f.zip
qed: sanitize PBL chains allocation
PBL chain elements are actually DMA addresses stored in __le64, but currently their size is hardcoded to 8, and DMA addresses are assigned via cast to variable-sized dma_addr_t without any bitwise conversions. Change the type of pbl_virt array to match the actual one, add a new field to store the size of allocated DMA memory and sanitize elements assignment. Misc: give more logic names to the members of qed_chain::pbl_sp embedded struct. Signed-off-by: Alexander Lobakin <[email protected]> Signed-off-by: Igor Russkikh <[email protected]> Signed-off-by: Michal Kalderon <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c')
0 files changed, 0 insertions, 0 deletions