mirror of
https://github.com/openbsd/src.git
synced 2026-06-17 23:03:29 +02:00
drm/amdkfd: fix NULL pointer bug in svm_range_set_attr
From Eric Huang 2f9c3c161692f5bf1436e869a651bed10936e071 in linux-6.18.y/6.18.35 e984d61d92e702096058f0f828f4b2b8563b88ce in mainline linux
This commit is contained in:
@@ -3680,6 +3680,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);
|
||||
|
||||
Reference in New Issue
Block a user