On Thu, May 7, 2026 at 4:24 PM Eric Huang <[email protected]> wrote: > > The process_info could be NULL if user doesn't call kfd_ioctl_acquire_vm > before calling kfd_ioctl_svm. > > Signed-off-by: Eric Huang <[email protected]>
Reviewed-by: Alex Deucher <[email protected]> > --- > drivers/gpu/drm/amd/amdkfd/kfd_svm.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_svm.c > b/drivers/gpu/drm/amd/amdkfd/kfd_svm.c > index 25b3ecf85f30..72cfb4a6ab3e 100644 > --- a/drivers/gpu/drm/amd/amdkfd/kfd_svm.c > +++ b/drivers/gpu/drm/amd/amdkfd/kfd_svm.c > @@ -3732,6 +3732,9 @@ svm_range_set_attr(struct kfd_process *p, struct > mm_struct *mm, > > svms = &p->svms; > > + if (!process_info) > + return -EINVAL; > + > mutex_lock(&process_info->lock); > > svm_range_list_lock_and_flush_work(svms, mm); > -- > 2.34.1 >
