WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] passthrough: Fix test_and_clear_bit() cal

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] passthrough: Fix test_and_clear_bit() caller to clear bitmap, not bitmap pointer
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 30 May 2009 02:30:27 -0700
Delivery-date: Sat, 30 May 2009 02:32:23 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] passthrough: Fix test_and_clear_bit() caller to clear bitmap, not bitmap pointer, Xen patchbot-unstable <=