]> git.baikalelectronics.ru Git - kernel.git/commit
amdkfd: Check kvmalloc return before memcpy
authorKent Russell <kent.russell@amd.com>
Mon, 2 Nov 2020 16:17:59 +0000 (11:17 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 Nov 2020 02:00:40 +0000 (21:00 -0500)
commit6ad639c01ffaaeae121d6942c5fa3b0d35f56b64
tree7f1771e16586e0bc9f9ac1ea000b9c34b902d1cc
parent2f250bf5d1941fdcbb69ff5f49886c6f5746d2f6
amdkfd: Check kvmalloc return before memcpy

If we can't kvmalloc the pcrat_image, then we shouldn't memcpy

Signed-off-by: Kent Russell <kent.russell@amd.com>
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_crat.c