aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorTian Tao <[email protected]>2020-08-12 07:42:59 +0000
committerThomas Zimmermann <[email protected]>2020-08-12 08:27:18 +0000
commit13b0d4a9ae0c2d650993c48be797992eaf621332 (patch)
tree2ed1b7d54c2e6fb3e9d50d11cbca386ac8bc6024 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentdrm/hisilicon: Remove the unused include statements (diff)
downloadkernel-13b0d4a9ae0c2d650993c48be797992eaf621332.tar.gz
kernel-13b0d4a9ae0c2d650993c48be797992eaf621332.zip
drm/hisilicon: Code refactoring for hibmc_drv_de
The memory used to be allocated with devres helpers and released automatically. In rare circumstances, the memory's release could have happened before the DRM device got released, which would have caused memory corruption of some kind. Now we're embedding the data structures in struct hibmc_drm_private. The whole release problem has been resolved, because struct hibmc_drm_private is allocated with drmm_kzalloc and always released with the DRM device. Signed-off-by: Tian Tao <[email protected]> Reviewed-by: Thomas Zimmermann <[email protected]> Signed-off-by: Thomas Zimmermann <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions