From: Dan Carpenter Date: Wed, 19 Oct 2011 06:15:10 +0000 (+0300) Subject: KVM: make checks stricter in coalesced_mmio_in_range() X-Git-Tag: v3.3-rc1~131^2~59 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a214246cbb431f7430f7d0c0fb66218a6f442d2;p=pandora-kernel.git 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 Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed