diff options
| author | Gavin Shan <[email protected]> | 2014-04-24 18:00:21 +1000 |
|---|---|---|
| committer | Benjamin Herrenschmidt <[email protected]> | 2014-04-28 17:34:40 +1000 |
| commit | 54f112a3837d4e7532bbedbbbf27c0de277be510 (patch) | |
| tree | a6dbfe63f68970f19669b34071154f2b532ec3c7 | |
| parent | 63796558d469d72ab081b266466d115755ba7085 (diff) | |
powerpc/pseries: Fix overwritten PE state
In pseries_eeh_get_state(), EEH_STATE_UNAVAILABLE is always
overwritten by EEH_STATE_NOT_SUPPORT because of the missed
"break" there. The patch fixes the issue.
Reported-by: Joe Perches <[email protected]>
Cc: linux-stable <[email protected]>
Signed-off-by: Gavin Shan <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
| -rw-r--r-- | arch/powerpc/platforms/pseries/eeh_pseries.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/pseries/eeh_pseries.c b/arch/powerpc/platforms/pseries/eeh_pseries.c index 9d58a53548f2..2f1ba64fc831 100644 --- a/arch/powerpc/platforms/pseries/eeh_pseries.c +++ b/arch/powerpc/platforms/pseries/eeh_pseries.c @@ -496,6 +496,7 @@ static int pseries_eeh_get_state(struct eeh_pe *pe, int *state) } else { result = EEH_STATE_NOT_SUPPORT; } + break; default: result = EEH_STATE_NOT_SUPPORT; } |