From: tip-bot for Betty Dall <betty.dall@hp.com>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@kernel.org,
tglx@linutronix.de, betty.dall@hp.com, dzickus@redhat.com
Subject: [tip:core/locking] x86/nmi: Fix the type of the nmiaction. flags field
Date: Mon, 7 May 2012 21:06:14 -0700 [thread overview]
Message-ID: <tip-6ff968cca1dfebd4b6fcade87c11658dbfc96932@git.kernel.org> (raw)
In-Reply-To: <1335559255-13454-1-git-send-email-betty.dall@hp.com>
Commit-ID: 6ff968cca1dfebd4b6fcade87c11658dbfc96932
Gitweb: http://git.kernel.org/tip/6ff968cca1dfebd4b6fcade87c11658dbfc96932
Author: Betty Dall <betty.dall@hp.com>
AuthorDate: Fri, 27 Apr 2012 14:40:55 -0600
Committer: Ingo Molnar <mingo@kernel.org>
CommitDate: Mon, 7 May 2012 12:32:11 +0200
x86/nmi: Fix the type of the nmiaction.flags field
This patch changes the type of the struct nmiaction flags field
to unsigned long from unsigned int. All the usages of the flags
field are unsigned long already. There is only one flag used
currently, NMI_FLAG_FIRST, but having the wrong size could cause
a truncation bug in the future on 64 bit architectures.
Signed-off-by: Betty Dall <betty.dall@hp.com>
Acked-by: Don Zickus <dzickus@redhat.com>
Link: http://lkml.kernel.org/r/1335559255-13454-1-git-send-email-betty.dall@hp.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
---
arch/x86/include/asm/nmi.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/include/asm/nmi.h b/arch/x86/include/asm/nmi.h
index a1a836c..0e3793b 100644
--- a/arch/x86/include/asm/nmi.h
+++ b/arch/x86/include/asm/nmi.h
@@ -40,7 +40,7 @@ typedef int (*nmi_handler_t)(unsigned int, struct pt_regs *);
struct nmiaction {
struct list_head list;
nmi_handler_t handler;
- unsigned int flags;
+ unsigned long flags;
const char *name;
};
prev parent reply other threads:[~2012-05-08 4:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-27 20:40 [PATCH v2] x86,nmi: Fix the type of nmiaction.flags field Betty Dall
2012-05-08 4:06 ` tip-bot for Betty Dall [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-6ff968cca1dfebd4b6fcade87c11658dbfc96932@git.kernel.org \
--to=betty.dall@hp.com \
--cc=dzickus@redhat.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).