Commit 500817b
virtio-mem: don't read big block size in Sub Block Mode
We are reading a Big Block Mode value while in Sub Block Mode
when initializing. Fortunately, vm->bbm.bb_size maps to some counter
in the vm->sbm.mb_count array, which is 0 at that point in time.
No harm done; still, this was unintended and is not future-proof.
Fixes: 4ba50cd ("virtio-mem: Big Block Mode (BBM) memory hotplug")
Signed-off-by: David Hildenbrand <david@redhat.com>
Link: https://lore.kernel.org/r/20210602185720.31821-2-david@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>1 parent efa08cb commit 500817b
1 file changed
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2420 | 2420 | | |
2421 | 2421 | | |
2422 | 2422 | | |
| 2423 | + | |
| 2424 | + | |
| 2425 | + | |
| 2426 | + | |
2423 | 2427 | | |
2424 | 2428 | | |
2425 | 2429 | | |
| |||
2466 | 2470 | | |
2467 | 2471 | | |
2468 | 2472 | | |
2469 | | - | |
2470 | 2473 | | |
2471 | | - | |
2472 | | - | |
2473 | | - | |
2474 | | - | |
2475 | | - | |
2476 | | - | |
| 2474 | + | |
| 2475 | + | |
| 2476 | + | |
| 2477 | + | |
2477 | 2478 | | |
2478 | 2479 | | |
2479 | 2480 | | |
| |||
0 commit comments