commit | 98a3cb024b0e4d5a4b1458946a82ea9b9619ba1c | [log] [tgz] |
---|---|---|
author | Isaku Yamahata <yamahata@valinux.co.jp> | Tue Dec 15 20:26:04 2009 +0900 |
committer | Michael S. Tsirkin <mst@redhat.com> | Wed Dec 23 16:35:00 2009 +0200 |
tree | 5bc90b9b170c5029ca3f052f9d33762deac5a83a | |
parent | a40e3411d199c43ea1eb837da642829d6a2d0148 [diff] [blame] |
msix: use range helper function. use range helper function in msix_write_config(). Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
diff --git a/hw/msix.c b/hw/msix.c index 0baedef..2ca0900 100644 --- a/hw/msix.c +++ b/hw/msix.c
@@ -175,7 +175,7 @@ unsigned enable_pos = dev->msix_cap + MSIX_CONTROL_OFFSET; int vector; - if (addr + len <= enable_pos || addr > enable_pos) { + if (!range_covers_byte(addr, len, enable_pos)) { return; }