patch-2.1.14 linux/net/rose/af_rose.c
Next file: linux/net/rose/rose_in.c
Previous file: linux/net/netrom/nr_timer.c
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Sat Nov 30 10:48:34 1996
- Orig file:
v2.1.13/linux/net/rose/af_rose.c
- Orig date:
Sat Nov 30 12:03:14 1996
diff -u --recursive --new-file v2.1.13/linux/net/rose/af_rose.c linux/net/rose/af_rose.c
@@ -1263,12 +1263,12 @@
switch (cmd) {
case TIOCOUTQ:
- if ((err = verify_area(VERIFY_WRITE, (void *)arg, sizeof(unsigned long))) != 0)
+ if ((err = verify_area(VERIFY_WRITE, (void *)arg, sizeof(unsigned int))) != 0)
return err;
amount = sk->sndbuf - sk->wmem_alloc;
if (amount < 0)
amount = 0;
- put_user(amount, (unsigned long *)arg);
+ put_user(amount, (unsigned int *)arg);
return 0;
case TIOCINQ: {
@@ -1276,9 +1276,9 @@
/* These two are safe on a single CPU system as only user tasks fiddle here */
if ((skb = skb_peek(&sk->receive_queue)) != NULL)
amount = skb->len - 20;
- if ((err = verify_area(VERIFY_WRITE, (void *)arg, sizeof(unsigned long))) != 0)
+ if ((err = verify_area(VERIFY_WRITE, (void *)arg, sizeof(unsigned int))) != 0)
return err;
- put_user(amount, (unsigned long *)arg);
+ put_user(amount, (unsigned int *)arg);
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov