blob: be8eb2316f0e9f8a44c01a593385a1171fcdb0c9 [file] [log] [blame]
From stable-bounces@linux.kernel.org Wed Jul 18 02:45:30 2007
From: Ingo Molnar <mingo@elte.hu>
Date: Wed, 18 Jul 2007 02:45:14 -0700 (PDT)
Subject: Fix rfkill IRQ flags.
To: stable@kernel.org
Cc: bunk@stusta.de
Message-ID: <20070718.024514.71553572.davem@davemloft.net>
From: Ingo Molnar <mingo@elte.hu>
[RFKILL]: fix net/rfkill/rfkill-input.c bug on 64-bit systems
Subject: [patch] net/input: fix net/rfkill/rfkill-input.c bug on 64-bit systems
this recent commit:
commit cf4328cd949c2086091c62c5685f1580fe9b55e4
Author: Ivo van Doorn <IvDoorn@gmail.com>
Date: Mon May 7 00:34:20 2007 -0700
[NET]: rfkill: add support for input key to control wireless radio
added this 64-bit bug:
....
unsigned int flags;
spin_lock_irqsave(&task->lock, flags);
....
irq 'flags' must be unsigned long, not unsigned int. The -rt tree has
strict checks about this on 64-bit so this triggered a build failure.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
---
net/rfkill/rfkill-input.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/net/rfkill/rfkill-input.c
+++ b/net/rfkill/rfkill-input.c
@@ -55,7 +55,7 @@ static void rfkill_task_handler(struct w
static void rfkill_schedule_toggle(struct rfkill_task *task)
{
- unsigned int flags;
+ unsigned long flags;
spin_lock_irqsave(&task->lock, flags);