On Fri, 2007-04-06 at 14:40 -0700, Nishanth Aravamudan wrote:Sorry, I think this should fix it: [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> diff --git a/drivers/net/tg3.c b/drivers/net/tg3.c index 0acee9f..256969e 100644 --- a/drivers/net/tg3.c +++ b/drivers/net/tg3.c @@ -4834,8 +4834,10 @@ static int tg3_chip_reset(struct tg3 *tp) * sharing or irqpoll. */ tp->tg3_flags |= TG3_FLAG_CHIP_RESETTING; - tp->hw_status->status = 0; - tp->hw_status->status_tag = 0; + if (tp->hw_status) { + tp->hw_status->status = 0; + tp->hw_status->status_tag = 0; + } tp->last_tag = 0; smp_mb(); synchronize_irq(tp->pdev->irq); -
| Glauber de Oliveira Costa | [PATCH 0/19] desc_struct integration |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| jmerkey | [ANNOUNCE] mdb: Merkey's Linux Kernel Debugger 2.6.27-rc4 released |
| Oliver Pinter | Re: x86: 4kstacks default |
git: | |
| Linus Torvalds | Re: VCS comparison table |
| Mark Junker | git on MacOSX and files with decomposed utf-8 file names |
| Junio C Hamano | Re: More precise tag following |
| Len Brown | fatal: unable to create '.git/index': File exists |
| Mayuresh Kathe | Re: What is our ultimate goal?? |
| Diana Eichert | Re: OpenBSD on decTOP? |
| Richard Stallman | Real men don't attack straw men |
| knitti | Re: HP Procurve or Soekris w. OpenBSD ? |
| Mark Lord | Re: 2.6.25-rc8: FTP transfer errors |
| Andi Kleen | [PATCH RFC] [1/9] Core module symbol namespaces code and intro. |
| Ritesh Kumar | SO_RCVBUF doesn't change receiver advertised window |
| Evgeniy Polyakov | Re: [BUG] New Kernel Bugs |
