]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/eeh: Fix crash in eeh_add_device_early() on Cell
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 14 Apr 2015 06:49:05 +0000 (16:49 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 14 Apr 2015 07:13:31 +0000 (17:13 +1000)
commit4aab3d727ad13c7bc5d755d5624bd70e6a6a0f40
treefd7a905d056cf98088657b2e365909d30b84b11a
parent66465614b88321e4e45c9eb77ecc4096cfbbebdc
powerpc/eeh: Fix crash in eeh_add_device_early() on Cell

The recent change to the EEH probing causes a crash on Cell because
eeh_ops is NULL.

Check if EEH is enabled and if not bail out.

Fixes: 345f9c45daff ("powerpc/eeh: Do probe on pci_dn")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/eeh.c