commit | b8fa2f3a82069304acac1f9e957d491585f4f49a | [log] [tgz] |
---|---|---|
author | Michael Chan <mchan@broadcom.com> | Fri Apr 06 17:35:37 2007 -0700 |
committer | David S. Miller <davem@davemloft.net> | Fri Apr 06 17:35:37 2007 -0700 |
tree | 8fc4023a131d17fc74835bf0c955280e35a3afdf | |
parent | 161980f4c6b846625efe6227420175cb41477de3 [diff] |
[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>