]> git.ipfire.org Git - people/arne_f/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Feb 2013 18:49:07 +0000 (10:49 -0800)
commita10a3daa591e6ea2619da1e0418af2a30aa77ac5
tree587a642eeacb3486398aa7e715d20be1ba66f60e
parent94fab0a18e9cbec420c58c7b12b93acf1663c3fd
tg3: Avoid null pointer dereference in tg3_interrupt in netconsole mode

[ Upstream commit 9c13cb8bb477a83b9a3c9e5a5478a4e21294a760 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/tg3.c