patch-2.4.10 linux/drivers/net/wan/farsync.c
Next file: linux/drivers/net/wan/hdlc.c
Previous file: linux/drivers/net/wan/dscc4.c
Back to the patch index
Back to the overall index
- Lines: 15
- Date:
Sun Sep 9 10:45:53 2001
- Orig file:
v2.4.9/linux/drivers/net/wan/farsync.c
- Orig date:
Mon Aug 27 12:41:43 2001
diff -u --recursive --new-file v2.4.9/linux/drivers/net/wan/farsync.c linux/drivers/net/wan/farsync.c
@@ -1200,7 +1200,8 @@
/* Sanity check the parameters. We don't support partial writes
* when going over the top
*/
- if ( wrthdr.size + wrthdr.offset > FST_MEMSIZE )
+ if ( wrthdr.size > FST_MEMSIZE || wrthdr.offset > FST_MEMSIZE
+ || wrthdr.size + wrthdr.offset > FST_MEMSIZE )
{
return -ENXIO;
}
@@ -1829,3 +1830,4 @@
module_init ( fst_init );
module_exit ( fst_cleanup_module );
+MODULE_LICENSE("GPL");
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)