powerpc/eeh: Fix condition for isolated state
Function eeh_pe_state_mark() could possibly have combination of multiple EEH PE state as its argument. The patch fixes the condition used to check if EEH_PE_ISOLATED is included. Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
d6f1e7abdb
commit
8315070c07
|
@ -525,7 +525,7 @@ static void *__eeh_pe_state_mark(void *data, void *flag)
|
|||
pe->state |= state;
|
||||
|
||||
/* Offline PCI devices if applicable */
|
||||
if (state != EEH_PE_ISOLATED)
|
||||
if (!(state & EEH_PE_ISOLATED))
|
||||
return NULL;
|
||||
|
||||
eeh_pe_for_each_dev(pe, edev, tmp) {
|
||||
|
|
Loading…
Reference in New Issue