diff options
author | David Hildenbrand <david@redhat.com> | 2021-06-02 20:57:14 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2021-07-08 07:49:02 -0400 |
commit | 500817bf5e110ad9b7138bc582971bb7ee77d6f7 (patch) | |
tree | f8c52325aa84e76952d96c17b22d3bdaf262fddf /drivers/gpio/gpio-octeon.c | |
parent | efa08cb468cdd67855f63f341eac5f5f9ac93370 (diff) | |
download | linux-500817bf5e110ad9b7138bc582971bb7ee77d6f7.tar.bz2 |
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: 4ba50cd3355d ("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>
Diffstat (limited to 'drivers/gpio/gpio-octeon.c')
0 files changed, 0 insertions, 0 deletions