]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
powerpc/eeh: Skip finding bus until after failure reporting
authorRussell Currey <ruscur@russell.cc>
Mon, 12 Sep 2016 04:17:24 +0000 (14:17 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 22 Sep 2016 21:54:21 +0000 (07:54 +1000)
commitaf2e3a009e7f73c3def283a768ea2cef69ae883e
treec2b7e458663da73bde1dabf1346c07f2d7b9fe71
parente98ddb77166a4d7ba6235b20a1328ecb137debb2
powerpc/eeh: Skip finding bus until after failure reporting

In eeh_handle_special_event(), eeh_pe_bus_get() is called before calling
eeh_report_failure() on every device under a PE.  If a PE was missing a
bus for some reason, the error would occur before reporting failure, even
though eeh_report_failure() doesn't require a bus.

Fix this by moving the bus retrieval and error check after the
eeh_report_failure() calls.

Signed-off-by: Russell Currey <ruscur@russell.cc>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/eeh_driver.c