提交 8315070c 编写于 作者: G Gavin Shan 提交者: Michael Ellerman

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: NGavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
上级 d6f1e7ab
...@@ -525,7 +525,7 @@ static void *__eeh_pe_state_mark(void *data, void *flag) ...@@ -525,7 +525,7 @@ static void *__eeh_pe_state_mark(void *data, void *flag)
pe->state |= state; pe->state |= state;
/* Offline PCI devices if applicable */ /* Offline PCI devices if applicable */
if (state != EEH_PE_ISOLATED) if (!(state & EEH_PE_ISOLATED))
return NULL; return NULL;
eeh_pe_for_each_dev(pe, edev, tmp) { eeh_pe_for_each_dev(pe, edev, tmp) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册