]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
virtio: handle > 2 billion page balloon targets
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 18 Mar 2008 03:58:15 +0000 (22:58 -0500)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 17 Mar 2008 11:58:19 +0000 (22:58 +1100)
commitbdc1681cdf1ab6a65fa935a2b3f8fc63b20c54ea
tree17910bdca2cee81b0d4a3ee877aec82db0017a09
parentc483934670d31e064e18967bb679c1079b54ea72
virtio: handle > 2 billion page balloon targets

If the host asks for a huge target towards_target() can overflow, and
we up oops as we try to release more pages than we have.  The simple
fix is to use a 64-bit value.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/virtio/virtio_balloon.c