Skip to content

Commit

Permalink
os/bluestore/BlueStore: fix error path if label set fails
Browse files Browse the repository at this point in the history
Reported-by: David Zafman <dzafman@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
  • Loading branch information
liewegas committed Dec 18, 2015
1 parent 6ed59a7 commit 0405578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/os/bluestore/BlueStore.cc
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ int BlueStore::_open_bdev(bool create)

r = _check_or_set_bdev_label(p, bdev->get_size(), "main", create);
if (r < 0)
goto fail;
goto fail_close;
return 0;

fail_close:
Expand Down

0 comments on commit 0405578

Please sign in to comment.