powerpc/pseries: Use correct event modifier in rtas_parse_epow_errlog()
authorYueHaibing <yuehaibing@huawei.com>
Wed, 23 Oct 2019 13:48:38 +0000 (21:48 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 13 Nov 2019 05:58:04 +0000 (16:58 +1100)
rtas_parse_epow_errlog() should pass 'modifier' to
handle_system_shutdown, because event modifier only use
bottom 4 bits.

Reviewed-by: Tyrel Datwyler <tyreld@linux.ibm.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20191023134838.21280-1-yuehaibing@huawei.com
arch/powerpc/platforms/pseries/ras.c

index 3acdcc3bb908c60f11ea30e534952b78293501ff..1d7f973c647b37b91b0af7da699fd68d1a6150d0 100644 (file)
@@ -255,7 +255,7 @@ static void rtas_parse_epow_errlog(struct rtas_error_log *log)
                break;
 
        case EPOW_SYSTEM_SHUTDOWN:
-               handle_system_shutdown(epow_log->event_modifier);
+               handle_system_shutdown(modifier);
                break;
 
        case EPOW_SYSTEM_HALT: