Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760080AbcCEIVZ (ORCPT ); Sat, 5 Mar 2016 03:21:25 -0500 Received: from torg.zytor.com ([198.137.202.12]:58990 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751356AbcCEIVR (ORCPT ); Sat, 5 Mar 2016 03:21:17 -0500 Date: Sat, 5 Mar 2016 00:20:42 -0800 From: tip-bot for Colin Ian King Message-ID: Cc: peterz@infradead.org, colin.king@canonical.com, hpa@zytor.com, mingo@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org, acme@redhat.com Reply-To: colin.king@canonical.com, tglx@linutronix.de, mingo@kernel.org, hpa@zytor.com, peterz@infradead.org, acme@redhat.com, linux-kernel@vger.kernel.org In-Reply-To: <1456923322-29697-1-git-send-email-colin.king@canonical.com> References: <1456923322-29697-1-git-send-email-colin.king@canonical.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:perf/core] perf tests: Initialize sa.sa_flags Git-Commit-ID: e17a0e16ca3a63d1bafbcba313586cf137418f45 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1218 Lines: 32 Commit-ID: e17a0e16ca3a63d1bafbcba313586cf137418f45 Gitweb: http://git.kernel.org/tip/e17a0e16ca3a63d1bafbcba313586cf137418f45 Author: Colin Ian King AuthorDate: Wed, 2 Mar 2016 12:55:22 +0000 Committer: Arnaldo Carvalho de Melo CommitDate: Thu, 3 Mar 2016 11:10:39 -0300 perf tests: Initialize sa.sa_flags The sa_flags field is not being initialized, so a garbage value is being passed to sigaction. Initialize it to zero. Signed-off-by: Colin Ian King Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1456923322-29697-1-git-send-email-colin.king@canonical.com Signed-off-by: Arnaldo Carvalho de Melo --- tools/perf/arch/x86/tests/rdpmc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/perf/arch/x86/tests/rdpmc.c b/tools/perf/arch/x86/tests/rdpmc.c index 7bb0d13..7945462 100644 --- a/tools/perf/arch/x86/tests/rdpmc.c +++ b/tools/perf/arch/x86/tests/rdpmc.c @@ -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,