]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commitb8fa2f3a82069304acac1f9e957d491585f4f49a
tree8fc4023a131d17fc74835bf0c955280e35a3afdf
parent161980f4c6b846625efe6227420175cb41477de3
[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