e1000e: properly bounds-check string functions
authorBruce Allan <bruce.w.allan@intel.com>
Thu, 6 Jan 2011 14:29:50 +0000 (14:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Jan 2011 07:44:08 +0000 (23:44 -0800)
commite0dc4f125456e57347a6d016bd7209f064135b1d
tree6458f1eaf49dabf7e08e65ec0493077cd84e260c
parent482fed85e64958f678a138a4b5f8891190d2b169
e1000e: properly bounds-check string functions

Use string functions with bounds checking rather than their non-bounds
checking counterparts, and do not hard code these boundaries.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Emil Tantilov <emil.s.tantilov@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/e1000e/ethtool.c
drivers/net/e1000e/netdev.c