summarylogtreecommitdiffstats
path: root/linux-4.12-copy-user.patch
diff options
context:
space:
mode:
Diffstat (limited to 'linux-4.12-copy-user.patch')
-rw-r--r--linux-4.12-copy-user.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/linux-4.12-copy-user.patch b/linux-4.12-copy-user.patch
new file mode 100644
index 00000000000..abaab4f7b12
--- /dev/null
+++ b/linux-4.12-copy-user.patch
@@ -0,0 +1,20 @@
+diff -ur pt1_drv-dkms-hg.orig/driver/pt1_pci.c pt1_drv-dkms-hg/driver/pt1_pci.c
+--- pt1_drv-dkms-hg.orig/driver/pt1_pci.c 2017-11-28 21:15:03.501668869 +0900
++++ pt1_drv-dkms-hg/driver/pt1_pci.c 2017-11-28 21:21:15.294803923 +0900
+@@ -11,13 +11,16 @@
+ #include <linux/interrupt.h>
+ #include <linux/version.h>
+ #include <linux/mutex.h>
++#include <linux/uaccess.h>
+
+ #if LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0)
+ #include <asm/system.h>
+ #endif
+ #include <asm/io.h>
+ #include <asm/irq.h>
++#if LINUX_VERSION_CODE < KERNEL_VERSION(4,12,0)
+ #include <asm/uaccess.h>
++#endif
+
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23)
+ #include <linux/freezer.h>