]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
x86/nmi: Fix the type of the nmiaction.flags field
authorBetty Dall <betty.dall@hp.com>
Fri, 27 Apr 2012 20:40:55 +0000 (14:40 -0600)
committerIngo Molnar <mingo@kernel.org>
Mon, 7 May 2012 10:32:11 +0000 (12:32 +0200)
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

index a1a836c8131c926c17ac7deac8a7debe9f28545a..0e3793b821ef4027c88f60cd2f7407277d034325 100644 (file)
@@ -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;
 };