summaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorBetty Dall <betty.dall@hp.com>2012-04-28 00:40:55 +0400
committerIngo Molnar <mingo@kernel.org>2012-05-07 14:32:11 +0400
commit6ff968cca1dfebd4b6fcade87c11658dbfc96932 (patch)
tree54caf0bf02bf3b5e121126e29ce7ae92e393749c /arch/x86
parent72b3fb24713755cf9740b403e95aa67ceedf3509 (diff)
downloadlinux-6ff968cca1dfebd4b6fcade87c11658dbfc96932.tar.xz
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>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/include/asm/nmi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/nmi.h b/arch/x86/include/asm/nmi.h
index a1a836c8131c..0e3793b821ef 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;
};