Skip to content

Commit 1b5ca67

Browse files
committed
crimson/os/seastore: fix use after free error
Signed-off-by: Zhang Song <[email protected]>
1 parent bf78b9d commit 1b5ca67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crimson/os/seastore/seastore.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ SeaStore::mount_ertr::future<> SeaStore::mount()
253253
ceph_assert(seastar::this_shard_id() == primary_core);
254254
return device->mount(
255255
).safe_then([this] {
256-
auto sec_devices = device->get_sharded_device().get_secondary_devices();
256+
auto &sec_devices = device->get_sharded_device().get_secondary_devices();
257257
return crimson::do_for_each(sec_devices, [this](auto& device_entry) {
258258
device_id_t id = device_entry.first;
259259
magic_t magic = device_entry.second.magic;

0 commit comments

Comments
 (0)