ia64/xen-unstable

changeset 19682:bfa933a4628d

passthrough: Fix test_and_clear_bit() caller to clear bitmap, not bitmap pointer

Latent bug triggered by '19650: eliminate hard-coded NR_IRQS'

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Sat May 30 10:24:21 2009 +0100 (2009-05-30)
parents f6dab6ff90c8
children d02c3b25c7c0
files xen/drivers/passthrough/io.c
line diff
     1.1 --- a/xen/drivers/passthrough/io.c	Fri May 29 09:33:06 2009 +0100
     1.2 +++ b/xen/drivers/passthrough/io.c	Sat May 30 10:24:21 2009 +0100
     1.3 @@ -444,7 +444,7 @@ void hvm_dirq_assist(struct vcpu *v)
     1.4            irq < d->nr_pirqs;
     1.5            irq = find_next_bit(hvm_irq_dpci->dirq_mask, d->nr_pirqs, irq + 1) )
     1.6      {
     1.7 -        if ( !test_and_clear_bit(irq, &hvm_irq_dpci->dirq_mask) )
     1.8 +        if ( !test_and_clear_bit(irq, hvm_irq_dpci->dirq_mask) )
     1.9              continue;
    1.10  
    1.11          spin_lock(&d->event_lock);