 
	
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [patch] fix a bug in condition checking in blktap2
 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
 | 
|  | Lists.xenproject.org is hosted with RackSpace, monitoring our |