diff options
| -rw-r--r-- | arch/powerpc/platforms/pseries/lpar.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/pseries/lpar.c b/arch/powerpc/platforms/pseries/lpar.c index 0da39fed355a..299731e9036b 100644 --- a/arch/powerpc/platforms/pseries/lpar.c +++ b/arch/powerpc/platforms/pseries/lpar.c | |||
| @@ -186,7 +186,13 @@ static long pSeries_lpar_hpte_remove(unsigned long hpte_group) | |||
| 186 | (0x1UL << 4), &dummy1, &dummy2); | 186 | (0x1UL << 4), &dummy1, &dummy2); |
| 187 | if (lpar_rc == H_SUCCESS) | 187 | if (lpar_rc == H_SUCCESS) |
| 188 | return i; | 188 | return i; |
| 189 | BUG_ON(lpar_rc != H_NOT_FOUND); | 189 | |
| 190 | /* | ||
| 191 | * The test for adjunct partition is performed before the | ||
| 192 | * ANDCOND test. H_RESOURCE may be returned, so we need to | ||
| 193 | * check for that as well. | ||
| 194 | */ | ||
| 195 | BUG_ON(lpar_rc != H_NOT_FOUND && lpar_rc != H_RESOURCE); | ||
| 190 | 196 | ||
| 191 | slot_offset++; | 197 | slot_offset++; |
| 192 | slot_offset &= 0x7; | 198 | slot_offset &= 0x7; |
