From: Nithin Nayak Sujir Date: Mon, 14 Jan 2013 17:10:59 +0000 (+0000) Subject: tg3: Avoid null pointer dereference in tg3_interrupt in netconsole mode X-Git-Tag: v3.2.39~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac7551bedf950ef638df23badb0df0a7ca8045fd;p=pandora-kernel.git 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 Signed-off-by: Michael Chan Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed