]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Avoid null pointer dereference in tg3_interrupt in netconsole mode
authorNithin Nayak Sujir <nsujir@broadcom.com>
Mon, 14 Jan 2013 17:10:59 +0000 (17:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Jan 2013 03:09:29 +0000 (22:09 -0500)
commite65aaf4b07e8336bd5d4ebe6d3ef26f16368d188
treeb4c51e4204a72e8b108aeb3ae96046427ed220df
parentdfaf2e60ee1a7ea4570ea1706a84aaae1fb801b6
tg3: Avoid null pointer dereference in tg3_interrupt in netconsole mode

When netconsole is enabled, logging messages generated during tg3_open
can result in a null pointer dereference for the uninitialized tg3
status block. Use the irq_sync flag to disable polling in the early
stages. irq_sync is cleared when the driver is enabling interrupts after
all initialization is completed.

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