]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amdgpu: defer cmd/fence/fw buffers destroy on hw_init failure
authorEvan Quan <evan.quan@amd.com>
Fri, 15 Mar 2019 08:25:15 +0000 (16:25 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Mar 2019 03:40:29 +0000 (22:40 -0500)
commit37945a3ad56f2859868959a25143c8da90626944
tree830443c89911182670db33788947583e57fe3873
parent7a3d7bf606ca29d2d43fae761e5b30ab9658153e
drm/amdgpu: defer cmd/fence/fw buffers destroy on hw_init failure

As the cleanup jobs performed in pre_fini may still need these
buffers. NULL pointer dereference will be triggered without them.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c