Message ID | 20170420094212.GI24486@lemon.lan |
---|---|
State | New |
Headers | show |
diff --git a/block/file-posix.c b/block/file-posix.c index b85ac9c..f1563ae 100644 --- a/block/file-posix.c +++ b/block/file-posix.c @@ -1069,7 +1069,7 @@ static int raw_handle_lock_update(BlockDriverState *bs, int lock_fd; if (!RAW_LOCK_SUPPORTED) { - return 0; + goto cleanup; } if (bdrv_get_flags(bs) & BDRV_O_INACTIVE) {