mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
drm/amdgpu: Allow kfd CRIU with no buffer objects
[ Upstream commit 85705b18ae7674347f8675f64b2b3115fb1d5629 ] The kfd CRIU checkpoint ioctl would return an error if trying to checkpoint a process with no kfd buffer objects. This is a normal case and should not be an error. Reviewed-by: Felix Kuehling <felix.kuehling@amd.com> Signed-off-by: David Francis <David.Francis@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0d629175a7
commit
2412c6aa42
@@ -2572,8 +2572,8 @@ static int criu_restore(struct file *filep,
|
||||
pr_debug("CRIU restore (num_devices:%u num_bos:%u num_objects:%u priv_data_size:%llu)\n",
|
||||
args->num_devices, args->num_bos, args->num_objects, args->priv_data_size);
|
||||
|
||||
if (!args->bos || !args->devices || !args->priv_data || !args->priv_data_size ||
|
||||
!args->num_devices || !args->num_bos)
|
||||
if ((args->num_bos > 0 && !args->bos) || !args->devices || !args->priv_data ||
|
||||
!args->priv_data_size || !args->num_devices)
|
||||
return -EINVAL;
|
||||
|
||||
mutex_lock(&p->mutex);
|
||||
|
||||
Reference in New Issue
Block a user