Skip to contentSkip to conversation

xen: blkfront vbd bugfix

PATCH In review Jody Belka 1 participant 1 message Jan 31, 2005

lore
Share & tools
lore

Jody Belka

author
#0 lore raw

PATCH 1/5 xen: blkfront vbd bugfix

Fix incorrect result-check in xlvbd_init_device

diffstat:

 vbd.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
linux-2.6.10-xen-sparse/drivers/xen/blkfront/vbd.c +1 -1
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
@@ -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