From: Michael Chan Date: Sat, 7 Apr 2007 00:35:37 +0000 (-0700) Subject: [TG3]: Fix crash during tg3_init_one(). X-Git-Tag: v2.6.21-rc7~44^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8fa2f3a82069304acac1f9e957d491585f4f49a;p=pandora-kernel.git [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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed