patch-2.1.5 linux/drivers/net/slip.c

Next file: linux/fs/binfmt_elf.c
Previous file: linux/drivers/net/ppp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.4/linux/drivers/net/slip.c linux/drivers/net/slip.c
@@ -1069,7 +1069,7 @@
 		if (err)  {
 			return err;
 		}
-		tmp = get_user((int *)arg);
+		get_user(tmp,(int *)arg);
 #ifndef SL_INCLUDE_CSLIP
 		if (tmp & (SL_MODE_CSLIP|SL_MODE_ADAPTIVE))  {
 			return -EINVAL;
@@ -1124,7 +1124,7 @@
 		if (err)  {
 			return -err;
 		}
-		tmp = get_user((int *)arg);
+		get_user(tmp,(int *)arg);
                 if (tmp > 255) /* max for unchar */
 			return -EINVAL; 
 		if ((sl->keepalive = (unchar) tmp) != 0) {
@@ -1149,9 +1149,9 @@
 		if (err)  {
 			return -err;
 		}
-		tmp = get_user((int *)arg);
+		get_user(tmp,(int *)arg);
                 if (tmp > 255) /* max for unchar */
-			return -EINVAL; 
+			return -EINVAL;
                 if ((sl->outfill = (unchar) tmp) != 0){
 			sl->outfill_timer.expires=jiffies+sl->outfill*HZ;
 			add_timer(&sl->outfill_timer);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov