[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] passthrough: Fix test_and_clear_bit() caller to clear bitmap, not bitmap pointer



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1243675461 -3600
# Node ID bfa933a4628da75b55ce4eec7e3ab333857ce6cf
# Parent  f6dab6ff90c8e2b30c44683ad3be179f2c788b5d
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@xxxxxxxxxx>
---
 xen/drivers/passthrough/io.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r f6dab6ff90c8 -r bfa933a4628d xen/drivers/passthrough/io.c
--- a/xen/drivers/passthrough/io.c      Fri May 29 09:33:06 2009 +0100
+++ b/xen/drivers/passthrough/io.c      Sat May 30 10:24:21 2009 +0100
@@ -444,7 +444,7 @@ void hvm_dirq_assist(struct vcpu *v)
           irq < d->nr_pirqs;
           irq = find_next_bit(hvm_irq_dpci->dirq_mask, d->nr_pirqs, irq + 1) )
     {
-        if ( !test_and_clear_bit(irq, &hvm_irq_dpci->dirq_mask) )
+        if ( !test_and_clear_bit(irq, hvm_irq_dpci->dirq_mask) )
             continue;
 
         spin_lock(&d->event_lock);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.