From: Mark Rustad Date: Fri, 6 Jun 2014 01:57:00 +0000 (+0000) Subject: ixgbe: Fix possible null-dereference in error path X-Git-Tag: omap-for-v3.17/fixes-against-rc2~149^2~92^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=508a8c9e264e1057f663e578c47c5ffa00adb160;p=pandora-kernel.git ixgbe: Fix possible null-dereference in error path In ixgbe_probe, the code at label err_dma can dereference adapter when it has a NULL value. The check is there to avoid disabling a disabled device. When adapter is NULL, treat it as if the device is enabled, because it is enabled in that case. Signed-off-by: Mark Rustad Tested-by: Phil Schmitt Signed-off-by: Jeff Kirsher --- Reading git-diff-tree failed