From: Benjamin Li Date: Tue, 23 Mar 2010 13:13:11 +0000 (+0000) Subject: bnx2: Fix netpoll crash. X-Git-Tag: v2.6.34-rc3~33^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4327ba435a56ada13eedf3eb332e583c7a0586a9;p=pandora-kernel.git bnx2: Fix netpoll crash. The bnx2 driver calls netif_napi_add() for all the NAPI structs during ->probe() time but not all of them will be used if we're not in MSI-X mode. This creates a problem for netpoll since it will poll all the NAPI structs in the dev_list whether or not they are scheduled, resulting in a crash when we access structure fields not initialized for that vector. We fix it by moving the netif_napi_add() call to ->open() after the number of IRQ vectors has been determined. Signed-off-by: Benjamin Li Signed-off-by: Michael Chan Signed-off-by: David S. Miller --- Reading git-diff-tree failed