summaryrefslogtreecommitdiff
path: root/x11-drivers/nvidia-drivers/files/nvidia-modprobe-390.141-uvm-perms.patch
blob: 6ffd42ff77ea9806ac6669b842c3b5dea2d78b74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
Create /dev/nvidia-uvm* by respecting nvidia.conf's permissions.
--- a/nvidia-modprobe/modprobe-utils/nvidia-modprobe-utils.c
+++ b/nvidia-modprobe/modprobe-utils/nvidia-modprobe-utils.c
@@ -742,6 +742,6 @@
     }
 
-    return mknod_helper(major, base_minor, NV_UVM_DEVICE_NAME, NULL) &&
-           mknod_helper(major, base_minor + 1, NV_UVM_TOOLS_DEVICE_NAME, NULL);
+    return mknod_helper(major, base_minor, NV_UVM_DEVICE_NAME, NV_PROC_REGISTRY_PATH) &&
+           mknod_helper(major, base_minor + 1, NV_UVM_TOOLS_DEVICE_NAME, NV_PROC_REGISTRY_PATH);
 }