]> 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>
Mon, 2 Nov 2020 20:33:33 +0000 (15:33 -0500)
commit66a0b9f5d6bcf7feb6517834a70a2c3b46176aaf
tree4d7cd44e6674d284a911f86af43db56c52493227
parent8f7cee451ac6b376c13a0b63af84fe238b1c7300
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