virtio_balloon: update_balloon_size(): update correct field
authorLuiz Capitulino <lcapitulino@redhat.com>
Thu, 5 Dec 2013 02:34:10 +0000 (13:04 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 5 Dec 2013 02:42:39 +0000 (13:12 +1030)
commit3459f11a8b16f40f9cde8e4281c2d5dd2ff1a732
tree2591a49f6649fdaace3425a7a495011df53acd1e
parentaf91706d5ddecb4a9858cca9e90d463037cfd498
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.

Commit 855e0c5288177bcb193f6f6316952d2490478e1c 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: 855e0c5288177bcb193f6f6316952d2490478e1c
drivers/virtio/virtio_balloon.c