Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 251213
b: refs/heads/master
c: 313d7b0
h: refs/heads/master
i:
  251211: 9b0c1db
v: v3
  • Loading branch information
Keir Fraser authored and Konrad Rzeszutek Wilk committed Apr 14, 2011
1 parent 73c0d49 commit 8c85c04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a81135d90bf176e6139c352c7b96c03d00131836
refs/heads/master: 313d7b003ceceb797e8c0d18ab085ed0638b4aff
6 changes: 6 additions & 0 deletions trunk/drivers/xen/blkback/xenbus.c
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,11 @@ static void frontend_changed(struct xenbus_device *dev,
if (dev->state == XenbusStateConnected)
break;

/* Enforce precondition before potential leak point.
* blkif_disconnect() is idempotent.
*/
blkif_disconnect(be->blkif);

err = connect_ring(be);
if (err)
break;
Expand All @@ -399,6 +404,7 @@ static void frontend_changed(struct xenbus_device *dev,
break;
/* fall through if not online */
case XenbusStateUnknown:
/* implies blkif_disconnect() via blkback_remove() */
device_unregister(&dev->dev);
break;

Expand Down

0 comments on commit 8c85c04

Please sign in to comment.