linux/drivers/net/ethernet/intel/igbvf
Dan Carpenter 3de9e65f01 igbvf: integer wrapping bug setting the mtu
If new_mtu is very large then "new_mtu + ETH_HLEN + ETH_FCS_LEN" can
wrap and the check on the next line can underflow. This is one of those
bugs which can be triggered by the user if you have namespaces
configured.

Also since this is something the user can trigger then we don't want to
have dev_err() message.

This is a static checker fix and I'm not sure what the impact is.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Tested-by: Sibai Li Sibai.li@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2013-10-24 05:03:06 -07:00
..
defines.h igbvf: work around i350 erratum 2012-11-28 03:57:23 -08:00
ethtool.c igbvf: fix divide by zero 2012-06-30 17:40:45 -07:00
igbvf.h intel: Remove extern from function prototypes 2013-09-24 12:51:37 -07:00
Makefile igbvf: change copyright date 2012-02-03 03:07:15 -08:00
mbx.c igbvf: change copyright date 2012-02-03 03:07:15 -08:00
mbx.h igbvf: change copyright date 2012-02-03 03:07:15 -08:00
netdev.c igbvf: integer wrapping bug setting the mtu 2013-10-24 05:03:06 -07:00
regs.h igbvf: change copyright date 2012-02-03 03:07:15 -08:00
vf.c net:drivers/net: Miscellaneous conversions to ETH_ALEN 2013-10-02 17:04:45 -04:00
vf.h igbvf: change copyright date 2012-02-03 03:07:15 -08:00