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