All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH-2.4] arm: incorrect use of "&&" instead of "&"
  2006-11-25 21:30 [PATCH-2.4] arm: incorrect use of "&&" instead of "&" Willy Tarreau
@ 2006-11-25 20:48 ` Russell King
  2006-11-25 21:45   ` Willy Tarreau
  0 siblings, 1 reply; 3+ messages in thread
From: Russell King @ 2006-11-25 20:48 UTC (permalink / raw)
  To: Willy Tarreau; +Cc: linux-kernel

On Sat, Nov 25, 2006 at 10:30:47PM +0100, Willy Tarreau wrote:
> I'm about to merge this fix into 2.4. It's already been fixed in 2.6.
> Do you have any objection ?

No objection - please merge.

> BTW, I have two email addresses for you, the one in the MAINTAINERS file
> and the one you use on LKML. Which one do you prefer ? Just in case, I've
> used both.

Both reach me, but I'd perfer rmk+kernel please.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH-2.4] arm: incorrect use of "&&" instead of "&"
@ 2006-11-25 21:30 Willy Tarreau
  2006-11-25 20:48 ` Russell King
  0 siblings, 1 reply; 3+ messages in thread
From: Willy Tarreau @ 2006-11-25 21:30 UTC (permalink / raw)
  To: rmk; +Cc: linux-kernel, rmk+lkml

Hi Russell,

I'm about to merge this fix into 2.4. It's already been fixed in 2.6.
Do you have any objection ?

BTW, I have two email addresses for you, the one in the MAINTAINERS file
and the one you use on LKML. Which one do you prefer ? Just in case, I've
used both.

Thanks in advance,
Willy


>From f3779aa6e0b38c0dfdad4f98b6bcddcd570b6aa7 Mon Sep 17 00:00:00 2001
From: Willy Tarreau <w@1wt.eu>
Date: Sat, 25 Nov 2006 22:00:12 +0100
Subject: [PATCH] arm: incorrect use of "&&" instead of "&"

In integrator_init_irq(), the use of "&&" in the following
statement causes all interrupts to be marked valid regardless
of INTEGRATOR_SC_VALID_INT, as long as it's non-zero :

     if (((1 << i) && INTEGRATOR_SC_VALID_INT) != 0)

Obvious fix is to replace it with "&". This was already fixed
in 2.6.

Signed-off-by: Willy Tarreau <w@1wt.eu>
---
 arch/arm/mach-integrator/irq.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-integrator/irq.c b/arch/arm/mach-integrator/irq.c
index 69d2e67..cc56534 100644
--- a/arch/arm/mach-integrator/irq.c
+++ b/arch/arm/mach-integrator/irq.c
@@ -55,7 +55,7 @@ void __init integrator_init_irq(void)
 	unsigned int i;
 
 	for (i = 0; i < NR_IRQS; i++) {
-	        if (((1 << i) && INTEGRATOR_SC_VALID_INT) != 0) {
+	        if (((1 << i) & INTEGRATOR_SC_VALID_INT) != 0) {
 		        irq_desc[i].valid	= 1;
 			irq_desc[i].probe_ok	= 1;
 			irq_desc[i].mask_ack	= sc_mask_irq;
-- 
1.4.2.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH-2.4] arm: incorrect use of "&&" instead of "&"
  2006-11-25 20:48 ` Russell King
@ 2006-11-25 21:45   ` Willy Tarreau
  0 siblings, 0 replies; 3+ messages in thread
From: Willy Tarreau @ 2006-11-25 21:45 UTC (permalink / raw)
  To: linux-kernel

On Sat, Nov 25, 2006 at 08:48:30PM +0000, Russell King wrote:
> On Sat, Nov 25, 2006 at 10:30:47PM +0100, Willy Tarreau wrote:
> > I'm about to merge this fix into 2.4. It's already been fixed in 2.6.
> > Do you have any objection ?
> 
> No objection - please merge.

done.

> > BTW, I have two email addresses for you, the one in the MAINTAINERS file
> > and the one you use on LKML. Which one do you prefer ? Just in case, I've
> > used both.
> 
> Both reach me, but I'd perfer rmk+kernel please.

OK, that's noted.

Thanks !
Willy


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-11-25 20:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-25 21:30 [PATCH-2.4] arm: incorrect use of "&&" instead of "&" Willy Tarreau
2006-11-25 20:48 ` Russell King
2006-11-25 21:45   ` Willy Tarreau

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.