x86/hw_breakpoints: Make default case in hw_breakpoint_arch_parse() return an error
[muen/linux.git] / arch / x86 / kernel / hw_breakpoint.c
index ff9bfd40429efeb7b4868d370628356e28265ec1..d7308302100276539e5c78798ee7ff013d719aa8 100644 (file)
@@ -354,6 +354,7 @@ int hw_breakpoint_arch_parse(struct perf_event *bp,
 #endif
        default:
                WARN_ON_ONCE(1);
 #endif
        default:
                WARN_ON_ONCE(1);
+               return -EINVAL;
        }
 
        /*
        }
 
        /*