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-devel

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

To: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [patch 1/5] xen: blkfront vbd bugfix
From: Jody Belka <lists-xen@xxxxxxxx>
Date: Mon, 31 Jan 2005 23:32:51 +0100
Delivery-date: Mon, 31 Jan 2005 22:33:48 +0000
Envelope-to: xen+James.Bulpin@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.4i
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [patch 1/5] xen: blkfront vbd bugfix, Jody Belka <=