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

Next file: linux/drivers/scsi/53c7,8xx.c
Previous file: linux/drivers/net/sk_g16.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.3/linux/drivers/net/slip.c linux/drivers/net/slip.c
@@ -996,19 +996,19 @@
 		return 0;
 
 	case SIOCGIFENCAP:
-		err = verify_area(VERIFY_WRITE, arg, sizeof(long));
+		err = verify_area(VERIFY_WRITE, arg, sizeof(int));
 		if (err)  {
 			return -err;
 		}
-		put_fs_long(sl->mode, (long *)arg);
+		put_user(sl->mode, (int *)arg);
 		return 0;
 
 	case SIOCSIFENCAP:
-		err = verify_area(VERIFY_READ, arg, sizeof(long));
+		err = verify_area(VERIFY_READ, arg, sizeof(int));
 		if (err)  {
 			return -err;
 		}
-		tmp = get_fs_long((long *)arg);
+		tmp = get_user((int *)arg);
 #ifndef SL_INCLUDE_CSLIP
 		if (tmp & (SL_MODE_CSLIP|SL_MODE_ADAPTIVE))  {
 			return -EINVAL;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this