perf tests: Initialize sa.sa_flags
[cascardo/linux.git] / tools / perf / arch / x86 / tests / rdpmc.c
index 7bb0d13..7945462 100644 (file)
@@ -103,6 +103,7 @@ static int __test__rdpmc(void)
 
        sigfillset(&sa.sa_mask);
        sa.sa_sigaction = segfault_handler;
+       sa.sa_flags = 0;
        sigaction(SIGSEGV, &sa, NULL);
 
        fd = sys_perf_event_open(&attr, 0, -1, -1,