]> git.baikalelectronics.ru Git - kernel.git/commit
[TG3]: Fix crash during tg3_init_one().
authorMichael Chan <mchan@broadcom.com>
Sat, 7 Apr 2007 00:35:37 +0000 (17:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Apr 2007 00:35:37 +0000 (17:35 -0700)
commitd9eb50471b2f733b5f3f735b08ce7b637a880028
tree8fc4023a131d17fc74835bf0c955280e35a3afdf
parent562c3740c83ec059538d6bc810971047b3341998
[TG3]: Fix crash during tg3_init_one().

The driver will crash when the chip has been initialized by EFI before
tg3_init_one().  In this case, the driver will call tg3_chip_reset()
before allocating consistent memory.

The bug is fixed by checking for tp->hw_status before accessing it
during tg3_chip_reset().

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c