소스 검색

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>
Gavin Shan 11 년 전
부모
커밋
8315070c07
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      arch/powerpc/kernel/eeh_pe.c

+ 1 - 1
arch/powerpc/kernel/eeh_pe.c

@@ -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) {