]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: also init GEM funcs in radeon_gem_prime_import_sg_table
authorChristian König <christian.koenig@amd.com>
Mon, 8 Mar 2021 18:35:14 +0000 (19:35 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Mar 2021 21:22:03 +0000 (16:22 -0500)
commit8012e7126e45d0e7fab4036c9e862a2ca262e81b
treeb7cd10367bfa6939ea8e73ec9a96bc2668038bee
parent1f34e70176b8342be2566f6df10924079a4f98a5
drm/radeon: also init GEM funcs in radeon_gem_prime_import_sg_table

Otherwise we will run into a NULL ptr deref.

Signed-off-by: Christian König <christian.koenig@amd.com>
Bug: https://bugzilla.kernel.org/show_bug.cgi?id=212137
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 5.11.x
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_gem.c
drivers/gpu/drm/radeon/radeon_prime.c