[PATCH] 8139cp: allocate statistics space only when needed
commit8b51292764a0ed46d7eb6bead4625ba83ee2ec05
authorStephen Hemminger <shemminger@osdl.org>
Wed, 14 Sep 2005 16:45:44 +0000 (14 09:45 -0700)
committerJeff Garzik <jgarzik@pobox.com>
Fri, 16 Sep 2005 06:51:31 +0000 (16 02:51 -0400)
tree20cf43cd3b26099542072fac695a50d0d8dc57a0
parented4b9f8014db4f343e89b44b7c5ca355f439ce36
[PATCH] 8139cp: allocate statistics space only when needed

Don't crash if ethtool statistics are requested and device is down.
Fix is to allocate pci space for statistics only when needed.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/8139cp.c