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

[Xen-devel] [patch 1/5] xen: blkfront vbd bugfix



Fix incorrect result-check in xlvbd_init_device

Signed-off-by: Jody Belka <knew-xen@xxxxxxxx>


diffstat:
 vbd.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -durN xen.orig/linux-2.6.10-xen-sparse/drivers/xen/blkfront/vbd.c 
xen/linux-2.6.10-xen-sparse/drivers/xen/blkfront/vbd.c
--- xen.orig/linux-2.6.10-xen-sparse/drivers/xen/blkfront/vbd.c 2005-01-30 
00:46:28.000000000 +0100
+++ xen/linux-2.6.10-xen-sparse/drivers/xen/blkfront/vbd.c      2005-01-31 
17:55:19.140189608 +0100
@@ -317,7 +317,7 @@
     down(&bd->bd_sem);
 
     gd = xlvbd_get_gendisk(mi, minor, xd);
-    if (mi == NULL) {
+    if (gd == NULL) {
         err = -EPERM;
         goto out;
     }


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel


 


Rackspace

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