Commit 4364ebd
committed
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 <[email protected]>1 parent c672d7a commit 4364ebd
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6890 | 6890 | | |
6891 | 6891 | | |
6892 | 6892 | | |
6893 | | - | |
| 6893 | + | |
6894 | 6894 | | |
6895 | 6895 | | |
6896 | 6896 | | |
| |||
0 commit comments