mirror of
https://github.com/torvalds/linux
synced 2024-11-03 01:56:01 +00:00
virtio_balloon: update_balloon_size(): update correct field
According to the virtio spec, the device configuration field that should be updated after an inflation or deflation operation is the 'actual' field, not the 'num_pages' one. Commit855e0c5288
swapped them in update_balloon_size(). Fix it. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Fixes:855e0c5288
This commit is contained in:
parent
af91706d5d
commit
3459f11a8b
1 changed files with 1 additions and 1 deletions
|
@ -285,7 +285,7 @@ static void update_balloon_size(struct virtio_balloon *vb)
|
|||
{
|
||||
__le32 actual = cpu_to_le32(vb->num_pages);
|
||||
|
||||
virtio_cwrite(vb->vdev, struct virtio_balloon_config, num_pages,
|
||||
virtio_cwrite(vb->vdev, struct virtio_balloon_config, actual,
|
||||
&actual);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue