mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2026-02-03 15:04:39 +00:00
535.247.01
This commit is contained in:
@@ -226,7 +226,7 @@ static inline const struct cpumask *uvm_cpumask_of_node(int node)
|
||||
#define __GFP_NORETRY 0
|
||||
#endif
|
||||
|
||||
#define NV_UVM_GFP_FLAGS (GFP_KERNEL)
|
||||
#define NV_UVM_GFP_FLAGS (GFP_KERNEL | __GFP_NOMEMALLOC)
|
||||
|
||||
// Develop builds define DEBUG but enable optimization
|
||||
#if defined(DEBUG) && !defined(NVIDIA_UVM_DEVELOP)
|
||||
|
||||
@@ -291,8 +291,12 @@ NV_STATUS uvm_va_space_mm_register(uvm_va_space_t *va_space)
|
||||
// allocates memory which is attached to the mm_struct and freed
|
||||
// when the mm_struct is freed.
|
||||
ret = __mmu_notifier_register(NULL, current->mm);
|
||||
if (ret)
|
||||
if (ret) {
|
||||
// Inform uvm_va_space_mm_unregister() that it has nothing to do.
|
||||
uvm_mmdrop(va_space_mm->mm);
|
||||
va_space_mm->mm = NULL;
|
||||
return errno_to_nv_status(ret);
|
||||
}
|
||||
#else
|
||||
UVM_ASSERT(0);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user