]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] 8139cp: allocate statistics space only when needed
authorStephen Hemminger <shemminger@osdl.org>
Wed, 14 Sep 2005 16:45:44 +0000 (09:45 -0700)
committerJeff Garzik <jgarzik@pobox.com>
Fri, 16 Sep 2005 06:51:31 +0000 (02:51 -0400)
commitc1433310b26238bd4682fcc8457f7ea6d7fd2dff
tree20cf43cd3b26099542072fac695a50d0d8dc57a0
parentaf74af55887b030e646f13988b3372e9c939aadd
[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