mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86,nmi: Fix the type of nmiaction.flags field
@ 2012-04-27  3:41 Don Zickus
  0 siblings, 0 replies; only message in thread
From: Don Zickus @ 2012-04-27  3:41 UTC (permalink / raw)
  To: x86; +Cc: LKML, Betty Dall, Don Zickus

From: Betty Dall <betty.dall@hp.com>

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>
Signed-off-by: Don Zickus <dzickus@redhat.com>
---
 arch/x86/kernel/nmi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/kernel/nmi.c b/arch/x86/kernel/nmi.c
index 47acaf3..db071af 100644
--- a/arch/x86/kernel/nmi.c
+++ b/arch/x86/kernel/nmi.c
@@ -35,7 +35,7 @@
 struct nmiaction {
 	struct list_head list;
 	nmi_handler_t handler;
-	unsigned int flags;
+	unsigned long flags;
 	char *name;
 };
 
-- 
1.7.7.6


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-04-27  3:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-27  3:41 [PATCH] x86,nmi: Fix the type of nmiaction.flags field Don Zickus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®