]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
os/bluestore: fix crash caused by dividing by 0
authorjrchyang <yujrchyang@outlook.com>
Tue, 24 Oct 2023 02:03:09 +0000 (10:03 +0800)
committerjrchyang <yujrchyang@outlook.com>
Tue, 24 Oct 2023 02:13:23 +0000 (10:13 +0800)
commit4364ebdfa4a218a61528f7579e45233cc4725326
tree4c82791a35a6c4118566fa3894d5f7b0858cb384
parentc672d7aab0240cefa8a3decdffd498e0ade3d5be
os/bluestore: fix crash caused by dividing by 0

In Allocator::create() => ZonedAllocator::ZonedAllocator()
num_zones is calculated by size / zone_size,
causing a crash when zone_size is set to 0

Signed-off-by: Jrchyang Yu <yuzhiqiang_yewu@cmss.chinamobile.com>
src/os/bluestore/BlueStore.cc