[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [TAPDISK] handle error case when opening VDIs
# HG changeset patch # User Jake Wires <jwires@xxxxxxxxxxxxx> # Date 1172252432 28800 # Node ID 5ba3037ea5e11bd578ca12439ee8b4f659fa866f # Parent ee4850bc895b0784850bd32dfd0e97ccb693fcb6 [TAPDISK] handle error case when opening VDIs --- tools/blktap/drivers/tapdisk.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff -r ee4850bc895b -r 5ba3037ea5e1 tools/blktap/drivers/tapdisk.c --- a/tools/blktap/drivers/tapdisk.c Fri Feb 23 17:02:58 2007 +0000 +++ b/tools/blktap/drivers/tapdisk.c Fri Feb 23 09:40:32 2007 -0800 @@ -306,8 +306,11 @@ static int open_disk(struct td_state *s, return -ENOMEM; err = drv->td_open(d, path, 0); - if (err) - goto fail; + if (err) { + free_driver(d); + s->disks = NULL; + return -ENOMEM; + } /* load backing files as necessary */ while ((err = d->drv->td_get_parent_id(d, &id)) == 0) { _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |