patch-2.4.5 linux/net/atm/mpoa_proc.c
Next file: linux/net/core/dev.c
Previous file: linux/net/README
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Tue May 15 01:29:35 2001
- Orig file:
v2.4.4/linux/net/atm/mpoa_proc.c
- Orig date:
Fri Sep 1 09:07:01 2000
diff -u --recursive --new-file v2.4.4/linux/net/atm/mpoa_proc.c linux/net/atm/mpoa_proc.c
@@ -175,7 +175,7 @@
if (nbytes < 0) return -EINVAL;
if (nbytes == 0) return 0;
- if (nbytes > PAGE_SIZE) nbytes = PAGE_SIZE-1;
+ if (nbytes >= PAGE_SIZE) nbytes = PAGE_SIZE-1;
error = verify_area(VERIFY_READ, buff, nbytes);
if (error) return error;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)