From: "Jan Beulich" Subject: [PATCH] Linux: Fwd: blkfront: Fix an unlikely xenbus crasher Date: Mon, 01 Mar 2010 09:31:33 +0000 Message-ID: <4B8B97850200007800031CA5@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part446E8965.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part446E8965.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Getting partition 0 should not fail, but if it does we won't continue. Signed-off-by: Daniel Stodden Signed-off-by: Jan Beulich --- a/drivers/xen/blkfront/blkfront.c +++ b/drivers/xen/blkfront/blkfront.c @@ -285,8 +285,10 @@ =20 case XenbusStateClosing: bd =3D bdget(info->dev); - if (bd =3D=3D NULL) + if (bd =3D=3D NULL) { xenbus_dev_fatal(dev, -ENODEV, "bdget failed"); + break; + } =20 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,17) down(&bd->bd_sem); --=__Part446E8965.0__= Content-Type: text/plain; name="blkfront-xenbus-oops.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="blkfront-xenbus-oops.patch" Subject: 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 Signed-off-by: Jan Beulich --- a/drivers/xen/blkfront/blkfront.c +++ b/drivers/xen/blkfront/blkfront.c @@ -285,8 +285,10 @@ =20 case XenbusStateClosing: bd =3D bdget(info->dev); - if (bd =3D=3D NULL) + if (bd =3D=3D NULL) { xenbus_dev_fatal(dev, -ENODEV, "bdget failed"); + break; + } =20 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,17) down(&bd->bd_sem); --=__Part446E8965.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__Part446E8965.0__=--