]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/radeon: avoid potential null pointer access
authorGuchun Chen <guchun.chen@amd.com>
Tue, 30 Mar 2021 14:02:06 +0000 (22:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Apr 2021 20:49:46 +0000 (16:49 -0400)
commitfd6ecc906960c1063c17f23b0b8dad5f6dcea4bc
tree9e42d98804e2c08d7fe2467a7c9324e8895dd76a
parent9973de10b5b70b0e5ed9e01e3b392dfc65ab215d
drm/radeon: avoid potential null pointer access

Leverage the same logic from amdgpu_ttm_tt_unpin_userptr.

Signed-off-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_ttm.c