diff --git a/lib/device/dev-io.c b/lib/device/dev-io.c index 903c58224..802830640 100644 --- a/lib/device/dev-io.c +++ b/lib/device/dev-io.c @@ -198,7 +198,7 @@ int dev_get_block_size(struct device *dev, unsigned int *physical_block_size, un *physical_block_size = (unsigned int) dev->phys_block_size; *block_size = (unsigned int) dev->block_size; out: - if (needs_open && !dev_close(dev)) + if (needs_open && !dev_close_immediate(dev)) stack; return r;