aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorDmitry Baryshkov <[email protected]>2023-12-01 21:18:45 +0000
committerDmitry Baryshkov <[email protected]>2023-12-05 19:14:34 +0000
commitcd42c56d9c0bb6007939408b4fbc62bbeccc9037 (patch)
tree5533234c7805205ad0f328195333e0ae3a849b14 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parentdrm/msm/dpu: drop dpu_encoder_phys_ops::destroy (diff)
downloadkernel-cd42c56d9c0bb6007939408b4fbc62bbeccc9037.tar.gz
kernel-cd42c56d9c0bb6007939408b4fbc62bbeccc9037.zip
drm/msm/dpu: use drmm-managed allocation for dpu_encoder_virt
It is incorrect to use devm-managed memory allocations for DRM data structures exposed to userspace. They should use drmm_ allocations. Change struct dpu_encoder allocation to use drmm_encoder_alloc(). This removes the need to perform any actions on encoder destruction. Reviewed-by: Jessica Zhang <[email protected]> Signed-off-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/570053/ Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions