]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Eicon driver: add missing uaccess
authorArmin Schindler <armin@melware.de>
Wed, 2 Feb 2005 09:47:44 +0000 (01:47 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 2 Feb 2005 09:47:44 +0000 (01:47 -0800)
This patch adds asm/uaccess.h to files which uses copy_to/from_user()
and adds the use of the drivers internal API call to copy_to/from_user()
in platform independent code.

Signed-off-by: Armin Schindler <armin@melware.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/isdn/hardware/eicon/divamnt.c
drivers/isdn/hardware/eicon/divasi.c
drivers/isdn/hardware/eicon/divasproc.c
drivers/isdn/hardware/eicon/mntfunc.c

index a02fdfb0906a0064005938836b2320df4a71aebb..8ba707f0ab5453f6d82b08bf207ef785a9a92988 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: divamnt.c,v 1.32.6.5 2004/08/28 20:03:53 armin Exp $
+/* $Id: divamnt.c,v 1.32.6.9 2005/01/31 12:22:20 armin Exp $
  *
  * Driver for Eicon DIVA Server ISDN cards.
  * Maint module
 #include <linux/smp_lock.h>
 #include <linux/poll.h>
 #include <linux/devfs_fs_kernel.h>
+#include <asm/uaccess.h>
 
 #include "platform.h"
 #include "di_defs.h"
 #include "divasync.h"
 #include "debug_if.h"
 
-static char *main_revision = "$Revision: 1.32.6.5 $";
+static char *main_revision = "$Revision: 1.32.6.9 $";
 
 static int major;
 
index 058b5c29cf69298c723e9d0520253d18feb5bb7b..df715b47e2b43f64239821353ab4f9b22c3de4fb 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: divasi.c,v 1.25 2003/09/09 06:46:29 schindler Exp $
+/* $Id: divasi.c,v 1.25.6.2 2005/01/31 12:22:20 armin Exp $
  *
  * Driver for Eicon DIVA Server ISDN cards.
  * User Mode IDI Interface 
@@ -20,6 +20,7 @@
 #include <linux/proc_fs.h>
 #include <linux/skbuff.h>
 #include <linux/devfs_fs_kernel.h>
+#include <asm/uaccess.h>
 
 #include "platform.h"
 #include "di_defs.h"
@@ -27,7 +28,7 @@
 #include "um_xdi.h"
 #include "um_idi.h"
 
-static char *main_revision = "$Revision: 1.25 $";
+static char *main_revision = "$Revision: 1.25.6.2 $";
 
 static int major;
 
index 55e83d1885d0890fc087432fc470dde751717564..b6435589d459494b57608579984f3ef19973b77a 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: divasproc.c,v 1.19 2004/03/21 17:26:01 armin Exp $
+/* $Id: divasproc.c,v 1.19.4.3 2005/01/31 12:22:20 armin Exp $
  *
  * Low level driver for Eicon DIVA Server ISDN cards.
  * /proc functions
@@ -16,6 +16,7 @@
 #include <linux/poll.h>
 #include <linux/proc_fs.h>
 #include <linux/list.h>
+#include <asm/uaccess.h>
 
 #include "platform.h"
 #include "debuglib.h"
index 29492451a891730f609347d1a606cca3f7d86f90..a564b7560031dfaac28ad8d7924370f513acb79f 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: mntfunc.c,v 1.19.6.2 2004/08/28 20:03:53 armin Exp $
+/* $Id: mntfunc.c,v 1.19.6.4 2005/01/31 12:22:20 armin Exp $
  *
  * Driver for Eicon DIVA Server ISDN cards.
  * Maint module
@@ -187,7 +187,7 @@ int maint_read_write(void __user *buf, int count)
                if (!mask) {
                        ret = diva_set_trace_filter (1, "*");
                } else if (mask < sizeof(data)) {
-                       if (copy_from_user(data, (char __user *)buf+12, mask)) {
+                       if (diva_os_copy_from_user(NULL, data, (char __user *)buf+12, mask)) {
                                ret = -EFAULT;
                        } else {
                                ret = diva_set_trace_filter ((int)mask, data);
@@ -199,7 +199,7 @@ int maint_read_write(void __user *buf, int count)
 
        case DITRACE_READ_SELECTIVE_TRACE_FILTER:
                if ((ret = diva_get_trace_filter (sizeof(data), data)) > 0) {
-                       if (copy_to_user (buf, data, ret))
+                       if (diva_os_copy_to_user (NULL, buf, data, ret))
                                ret = -EFAULT;
                } else {
                        ret = -ENODEV;