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-3.4-testing] passthrough: Fix test_and_clear_bit()

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-3.4-testing] passthrough: Fix test_and_clear_bit() caller to clear bitmap, not bitmap pointer
From: "Xen patchbot-3.4-testing" <patchbot-3.4-testing@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 02 Jun 2009 22:10:32 -0700
Delivery-date: Thu, 11 Jun 2009 07:58:35 -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 1243863851 -3600
# Node ID 4ce864e7851fdae3bbafd42db11c902811038de8
# Parent  4bf42e91bd66723cf6cedfc03982e18dac455b7a
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-unstable changeset:   19682:bfa933a4628d
xen-unstable date:        Sat May 30 10:24:21 2009 +0100
---
 xen/drivers/passthrough/io.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -r 4bf42e91bd66 -r 4ce864e7851f xen/drivers/passthrough/io.c
--- a/xen/drivers/passthrough/io.c      Mon Jun 01 14:43:39 2009 +0100
+++ b/xen/drivers/passthrough/io.c      Mon Jun 01 14:44:11 2009 +0100
@@ -418,7 +418,7 @@ void hvm_dirq_assist(struct vcpu *v)
           irq < NR_IRQS;
           irq = find_next_bit(hvm_irq_dpci->dirq_mask, NR_IRQS, 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-3.4-testing] passthrough: Fix test_and_clear_bit() caller to clear bitmap, not bitmap pointer, Xen patchbot-3.4-testing <=