aboutsummaryrefslogtreecommitdiff
path: root/bt-vhci.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2019-07-25 07:54:25 -0400
committerMichael S. Tsirkin <mst@redhat.com>2019-07-25 11:19:25 -0400
commit1b47b37c33ec01ae1efc527f4c97f97f93723bc4 (patch)
treec70b28a0172c77bafd665a70b5f0c901c9380bb4 /bt-vhci.c
parent9a7ca8a7c920360db9dcaf616ca6f1440c025043 (diff)
virtio-balloon: free pbp more aggressively
Previous patches switched to a temporary pbp but that does not go far enough: after device uses a buffer, guest is free to reuse it, so tracking the page and freeing it later is wrong. Free and reset the pbp after we push each element. Fixes: ed48c59875b6 ("virtio-balloon: Safely handle BALLOON_PAGE_SIZE < host page size") Cc: qemu-stable@nongnu.org #v4.0.0 Cc: David Hildenbrand <david@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'bt-vhci.c')
0 files changed, 0 insertions, 0 deletions