commit | cc526cf0fcff1ded77771706950522b44f5affbe | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Wed Oct 19 09:15:10 2011 +0300 |
committer | Marcelo Tosatti <mtosatti@redhat.com> | Wed Oct 19 15:29:32 2011 -0200 |
tree | 962c0070a73e3a078cd4d0ec7d4f8b532f2389cd | |
parent | ab03dfe8f51bc57d11636a3558d1177ec013e85f [diff] |
KVM: make checks stricter in coalesced_mmio_in_range() My testing version of Smatch complains that addr and len come from the user and they can wrap. The path is: -> kvm_vm_ioctl() -> kvm_vm_ioctl_unregister_coalesced_mmio() -> coalesced_mmio_in_range() I don't know what the implications are of wrapping here, but we may as well fix it, if only to silence the warning. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>