nV News Forums

 
 

nV News Forums (http://www.nvnews.net/vbulletin/index.php)
-   NVIDIA Linux (http://www.nvnews.net/vbulletin/forumdisplay.php?f=14)
-   -   [ PATCH ]: 331.20 UVM for Linux 3.12.0 (http://www.nvnews.net/vbulletin/showthread.php?t=212423)

pavlinux 11-07-13 07:39 AM

[ PATCH ]: 331.20 UVM for Linux 3.12.0
 
(nana2)
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


sl1pkn07 11-09-13 08:11 PM

Re: [ PATCH ]: 331.20 UVM for Linux 3.12.0
 
hi

this patch is for?

build for me without patch in 3.12.0

greetings


All times are GMT -5. The time now is 06:55 PM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.