diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/xen-blkfront.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c index da3fee6bf530..a39b4b2b0c50 100644 --- a/drivers/block/xen-blkfront.c +++ b/drivers/block/xen-blkfront.c | |||
@@ -997,7 +997,7 @@ static int blkif_release(struct inode *inode, struct file *filep) | |||
997 | struct xenbus_device *dev = info->xbdev; | 997 | struct xenbus_device *dev = info->xbdev; |
998 | enum xenbus_state state = xenbus_read_driver_state(dev->otherend); | 998 | enum xenbus_state state = xenbus_read_driver_state(dev->otherend); |
999 | 999 | ||
1000 | if (state == XenbusStateClosing) | 1000 | if (state == XenbusStateClosing && info->is_ready) |
1001 | blkfront_closing(dev); | 1001 | blkfront_closing(dev); |
1002 | } | 1002 | } |
1003 | return 0; | 1003 | return 0; |