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

[Xen-changelog] [linux-2.6.18-xen] blkfront: Fix an unlikely xenbus cras

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] blkfront: Fix an unlikely xenbus crasher
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 01 Mar 2010 02:00:14 -0800
Delivery-date: Mon, 01 Mar 2010 02:00:44 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1267437412 0
# Node ID 791c320be0ba3c1426c3c3a2fb3edd979fc4f8df
# Parent  2fc782287952cc8ee6f7c0768970d96fb566eef5
blkfront: Fix an unlikely xenbus crasher

Getting partition 0 should not fail, but if it does we won't continue.

Signed-off-by: Daniel Stodden <daniel.stodden@xxxxxxxxxx>
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 drivers/xen/blkfront/blkfront.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff -r 2fc782287952 -r 791c320be0ba drivers/xen/blkfront/blkfront.c
--- a/drivers/xen/blkfront/blkfront.c   Mon Mar 01 09:56:15 2010 +0000
+++ b/drivers/xen/blkfront/blkfront.c   Mon Mar 01 09:56:52 2010 +0000
@@ -286,8 +286,10 @@ static void backend_changed(struct xenbu
 
        case XenbusStateClosing:
                bd = bdget(info->dev);
-               if (bd == NULL)
+               if (bd == NULL) {
                        xenbus_dev_fatal(dev, -ENODEV, "bdget failed");
+                       break;
+               }
 
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,17)
                down(&bd->bd_sem);

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] blkfront: Fix an unlikely xenbus crasher, Xen patchbot-linux-2.6.18-xen <=