Prevent vbd frontend from oopsing if the underlying device doesn't exist.

Signed-off-by: Horms <horms@verge.net.au>
Signed-off-by: Vincent Hanquez <vincent@xensource.com>
This commit is contained in:
vhanquez@kneesa.uk.xensource.com committed 2005-12-27 10:40:33 +00:00
1 parent 62cc71c8a8
commit 9ab2587f30
1 file changed
+6 -1
@@ -331,7 +331,12 @@ static void connect(struct blkfront_info *info)
return;
}
xlvbd_add(sectors, info->vdevice, binfo, sector_size, info);
err = xlvbd_add(sectors, info->vdevice, binfo, sector_size, info);
if (err) {
xenbus_dev_fatal(info->xbdev, err, "xlvbd_add at %s",
info->xbdev->otherend);
return;
}
(void)xenbus_switch_state(info->xbdev, NULL, XenbusStateConnected);
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.