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)
commita25955ba123499d7db520175c6be59c29f9215e3
treeb7cd10367bfa6939ea8e73ec9a96bc2668038bee
parent48123d068fcb584838ce29912660c5e9490bad0e
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