|
@@ -191,7 +191,8 @@ static void leak_balloon(struct virtio_balloon *vb, size_t num)
|
|
|
* virtio_has_feature(vdev, VIRTIO_BALLOON_F_MUST_TELL_HOST);
|
|
|
* is true, we *have* to do it in this order
|
|
|
*/
|
|
|
- tell_host(vb, vb->deflate_vq);
|
|
|
+ if (vb->num_pfns != 0)
|
|
|
+ tell_host(vb, vb->deflate_vq);
|
|
|
mutex_unlock(&vb->balloon_lock);
|
|
|
release_pages_by_pfn(vb->pfns, vb->num_pfns);
|
|
|
}
|