summaryrefslogtreecommitdiff
path: root/sound/spi
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-10-15 13:05:00 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2021-10-18 14:07:17 -0400
commitfa13843d1565d4c5b3aeb9be3343b313416bef46 (patch)
tree7fe205877157bfd74eb55bd7756541d10725252d /sound/spi
parente2b6d941ec3876d3c44b1dfed596a2cc78477da2 (diff)
KVM: X86: fix lazy allocation of rmaps
If allocation of rmaps fails, but some of the pointers have already been written, those pointers can be cleaned up when the memslot is freed, or even reused later for another attempt at allocating the rmaps. Therefore there is no need to WARN, as done for example in memslot_rmap_alloc, but the allocation *must* be skipped lest KVM will overwrite the previous pointer and will indeed leak memory. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'sound/spi')
0 files changed, 0 insertions, 0 deletions