Skip to content
Commit ca2c5b33 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

vhost: fix end of range for access_ok



During access_ok checks, addr increases as we iterate over the data
structure, thus addr + len - 1 will point beyond the end of region we
are translating.  Harmless since we then verify that the region covers
addr, but let's not waste cpu cycles.

Reported-by: default avatarKoichiro Den <den@klaipeden.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Acked-by: default avatarKoichiro Den <den@klaipeden.com>
parent 816e85ed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment