patch-2.1.6 linux/net/appletalk/ddp.c
Next file: linux/net/ax25/af_ax25.c
Previous file: linux/net/appletalk/aarp.c
Back to the patch index
Back to the overall index
-  Lines: 22
-  Date:
Mon Oct 28 22:19:15 1996
-  Orig file: 
v2.1.5/linux/net/appletalk/ddp.c
-  Orig date: 
Wed Oct 16 10:48:30 1996
diff -u --recursive --new-file v2.1.5/linux/net/appletalk/ddp.c linux/net/appletalk/ddp.c
@@ -35,7 +35,7 @@
  
 #include <linux/config.h>
 #include <linux/module.h>
-#include <asm/segment.h>
+#include <asm/uaccess.h>
 #include <asm/system.h>
 #include <asm/bitops.h>
 #include <linux/types.h>
@@ -1024,10 +1024,9 @@
 	if(optval==NULL)
 		return(-EINVAL);
 
-	err=verify_area(VERIFY_READ,optval,sizeof(int));
-	if(err)
+	err = get_user(opt, (int *)optval);
+	if (err)
 		return err;
-	opt=get_fs_long((unsigned long *)optval);
 	
 	switch(level)
 	{
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov