*/
if (mce_flags.overflow_recov) {
/* software can try to contain */
- if (!(m->mcgstatus & MCG_STATUS_RIPV))
- if (ctx == IN_KERNEL)
- return MCE_PANIC_SEVERITY;
+ if (!(m->mcgstatus & MCG_STATUS_RIPV) && (ctx == IN_KERNEL))
+ return MCE_PANIC_SEVERITY;
- /* kill current process */
- return MCE_AR_SEVERITY;
+ /* kill current process */
+ return MCE_AR_SEVERITY;
} else {
/* at least one error was not logged */
if (m->status & MCI_STATUS_OVER)