View Single Post
Old 11-07-13, 06:39 AM   #1
pavlinux
Registered User
 
pavlinux's Avatar
 
Join Date: Feb 2006
Location: Moscow, Russia
Posts: 57
Exclamation [ PATCH ]: 331.20 UVM for Linux 3.12.0


Code:
diff -ur a/nvidia_uvm_common.c b/nvidia_uvm_common.c
--- a/nvidia_uvm_common.c       2013-10-31 04:15:05.000000000 +0400
+++ b/nvidia_uvm_common.c       2013-11-07 00:20:35.000000000 +0400
@@ -324,5 +324,5 @@
 
 module_init(uvm_init);
 module_exit(uvm_exit);
-MODULE_LICENSE("MIT");
+MODULE_LICENSE("GPL");
 MODULE_INFO(supported, "external");
diff -ur a/nvidia_uvm_linux.h b/nvidia_uvm_linux.h
---    a/nvidia_uvm_linux.h        2013-10-31 04:15:06.000000000 +0400
+++ b/nvidia_uvm_linux.h        2013-11-07 00:19:42.000000000 +0400
@@ -390,10 +390,9 @@
 //
 //
 #if defined(NV_TASK_STRUCT_HAS_CRED)
-#define NV_CURRENT_EUID() \
-    (((typeof(*current->cred) __force __kernel *)current->cred)->euid)
+#define NV_CURRENT_EUID()  from_kuid(current_user_ns(), current->cred->euid)
 #else
 #define NV_CURRENT_EUID() (current->euid)
#endif
pavlinux is offline   Reply With Quote