]> bbs.cooldavid.org Git - net-next-2.6.git/commit
ixgbe: cleanup ixgbe_get_drvinfo to be extra careful with buffer boundaries
authorDon Skidmore <donald.c.skidmore@intel.com>
Thu, 19 Aug 2010 13:33:16 +0000 (13:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Aug 2010 23:36:44 +0000 (16:36 -0700)
commit083fc582b8752c64b0ae73935ddb45a1dd794b4c
treeb77af1a514e8f2e585c0f442175929cbcae3150d
parent357e8b5f723ba9e1d0a0f8ffb1361d607e43e19a
ixgbe: cleanup ixgbe_get_drvinfo to be extra careful with buffer boundaries

Make the code in ixgbe_get_drvinfo more protected against buffer overflow
boundaries by using snprintf and sizeof with snprintf.

Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_ethtool.c