ia64/xen-unstable
changeset 6815:fe5b84a24d43
Some more resilience to errors in creating vbds etc; still needs more work
to tidy up things properly (e.g. the store state).
Signed-off-by: Steven Hand <steven@xensource.com>
to tidy up things properly (e.g. the store state).
Signed-off-by: Steven Hand <steven@xensource.com>
author | shand@ubuntu.eng.hq.xensource.com |
---|---|
date | Tue Sep 13 10:03:04 2005 -0800 (2005-09-13) |
parents | 22d08cc7f739 |
children | 3a34bcb7c28b |
files | linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c |
line diff
1.1 --- a/linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c Tue Sep 13 17:49:38 2005 +0000 1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/blkback/xenbus.c Tue Sep 13 10:03:04 2005 -0800 1.3 @@ -170,6 +170,7 @@ static void backend_changed(struct xenbu 1.4 1.5 be->blkif = alloc_blkif(be->frontend_id); 1.6 if (IS_ERR(be->blkif)) { 1.7 + /* XXX SMH: should free blkif here... hmm */ 1.8 err = PTR_ERR(be->blkif); 1.9 be->blkif = NULL; 1.10 xenbus_dev_error(dev, err, "creating block interface"); 1.11 @@ -178,6 +179,8 @@ static void backend_changed(struct xenbu 1.12 1.13 err = vbd_create(be->blkif, handle, be->pdev, be->readonly); 1.14 if (err) { 1.15 + /* XXX SMH: should free blkif here too... */ 1.16 + be->blkif = NULL; 1.17 xenbus_dev_error(dev, err, "creating vbd structure"); 1.18 return; 1.19 }