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, 24 Mar 2021 03:25:15 +0000 (23:25 -0400)
commitb503138e49ebe68d2874e3c14237e14ce37b1bf5
tree787eb4bd274b716d3539bea43849609af7abb1be
parent0b4e90632d9308f4923530e227b6e46578d2e80b
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>
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_gem.c
drivers/gpu/drm/radeon/radeon_prime.c