]> Pileus Git - ~andy/linux/commit
e1000e: Avoid kernel crash during shutdown
authorLi Zhang <zhlcindy@gmail.com>
Tue, 13 Aug 2013 18:42:58 +0000 (18:42 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 22 Aug 2013 09:33:20 +0000 (02:33 -0700)
commite8c254c5feb92c5b9a6950bc7351e2b1b7b09b93
tree610e063e33db35281e7a27f908e75708bc077eb5
parent13129d9b6183bf93b005ed9ad0eb46122794fe21
e1000e: Avoid kernel crash during shutdown

While doing shutdown on the PCI device, the corresponding callback
function e1000e_shutdown() is trying to clear those correctable
errors on the upstream P2P bridge. Unfortunately, we don't have
the upstream P2P bridge under some cases (e.g. PCI-passthrou for
KVM on Power). That leads to kernel crash eventually.

The patch adds one more check on that to avoid kernel crash.

Signed-off-by: Li Zhang <zhlcindy@gmail.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/e1000e/netdev.c