]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1f977b7db1e30e4d87d08943e54c3406ff2e3ffe
tree2591a49f6649fdaace3425a7a495011df53acd1e
parentf2ec20bf5728402139c3f7826a6a243031a3e5e6
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 0571a77d320e4142b515b59e8db105c33c1f1d17 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: 0571a77d320e4142b515b59e8db105c33c1f1d17
drivers/virtio/virtio_balloon.c