summary refs log tree commit diff
path: root/pkgs/os-specific/linux/mwprocapture/linux_4_14_fix.patch
blob: 9de1c093436ae4272ff2487b12d14900a7dbf600 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff -Naur ProCaptureForLinux_3589/src/sources/ospi/linux-file.c ProCaptureForLinux_3589_new/src/sources/ospi/linux-file.c
--- ProCaptureForLinux_3589/src/sources/ospi/linux-file.c	2017-08-17 02:46:07.000000000 -0700
+++ ProCaptureForLinux_3589_new/src/sources/ospi/linux-file.c	2017-11-13 19:49:46.710616748 -0800
@@ -7,8 +7,8 @@
 
 #include "linux-file.h"
 
-#include <asm/uaccess.h>
 #include <linux/sched.h>
+#include <asm/uaccess.h>
 
 struct file *linux_file_open(const char *path, int flags, int mode)
 {
@@ -35,7 +35,7 @@
 
     oldfs = get_fs();
     set_fs(get_ds());
-    ret = vfs_read(file, data, size, &offset);
+    ret = kernel_read(file, data, size, &offset);
     set_fs(oldfs);
 
     return ret;
@@ -48,7 +48,7 @@
 
     oldfs = get_fs();
     set_fs(get_ds());
-    ret = vfs_write(file, data, size, &offset);
+    ret = kernel_write(file, data, size, &offset);
     set_fs(oldfs);
 
     return ret;