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

[Xen-devel] [patch] fix a bug in condition checking in blktap2


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx
  • From: Jun Koi <junkoi2004@xxxxxxxxx>
  • Date: Wed, 24 Jun 2009 16:42:57 +0900
  • Delivery-date: Wed, 24 Jun 2009 00:43:23 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=iuY0FnNLNLR6ScFZcz4WnQ9zIRRT4r0NuZjJ4qAzLEeRN3kZCNU70VolIfQ0ZZztXk K1xlF+oRLBTAr58j59B0+mBngoslHdY8V2unItx/H47FQH/eAL/uHcSArHqoCxEDyqFX gQTTCrUOml4loJpeXQGfw6Bz4jQyThGmbODNg=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Looks like an obvious bug in arithmetic condition checking.

Signed-off-by: Jun Koi <junkoi2004@xxxxxxxxx>

--- a/tools/blktap2/drivers/lock.c      Tue Jun 23 17:32:07 2009 +0100
+++ b/tools/blktap2/drivers/lock.c      Wed Jun 24 16:39:23 2009 +0900
@@ -250,7 +250,7 @@
                         }
                 }
                 dptr = readdir(pd);
-                if (!dptr & errno) {
+                if (!dptr && errno) {
                     *ioerror = EIO;
                 }
         }

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


 


Rackspace

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