kernel_optimize_test/drivers/net/e1000
Roel Kluin c32bc6e9b0 e1000: fix memcpy in e1000_get_strings
drivers/net/e1000/e1000_ethtool.c:113:
#define E1000_TEST_LEN sizeof(e1000_gstrings_test) / ETH_GSTRING_LEN

drivers/net/e1000e/ethtool.c:106:
#define E1000_TEST_LEN sizeof(e1000_gstrings_test) / ETH_GSTRING_LEN

E1000_TEST_LEN*ETH_GSTRING_LEN will expand to
sizeof(e1000_gstrings_test) / (ETH_GSTRING_LEN * ETH_GSTRING_LEN)

A lack of parentheses around defines causes unexpected results due to
operator precedences.

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
2007-12-07 15:01:43 -05:00
..
e1000_ethtool.c e1000: fix memcpy in e1000_get_strings 2007-12-07 15:01:43 -05:00
e1000_hw.c e1000: sparse warnings fixes 2007-10-30 14:32:17 -04:00
e1000_hw.h PCI-X/PCI-Express read control interfaces: use them in e1000 2007-10-10 16:53:50 -07:00
e1000_main.c e1000: Fix NAPI state bug when Rx complete 2007-12-01 16:32:32 -05:00
e1000_osdep.h e1000: clean up debug output defines 2007-02-05 16:58:41 -05:00
e1000_param.c e1000: sparse warnings fixes 2007-10-30 14:32:17 -04:00
e1000.h e1000: sparse warnings fixes 2007-10-30 14:32:17 -04:00
Makefile e100, e1000, ixgb: update copyright header and remove LICENSE 2006-09-27 12:53:14 -07:00