projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a40e341
)
msix: use range helper function.
author
Isaku Yamahata
<yamahata@valinux.co.jp>
Tue, 15 Dec 2009 11:26:04 +0000
(20:26 +0900)
committer
Michael S. Tsirkin
<mst@redhat.com>
Wed, 23 Dec 2009 14:35:00 +0000
(16:35 +0200)
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>
hw/msix.c
patch
|
blob
|
history
diff --git
a/hw/msix.c
b/hw/msix.c
index 0baedef42c258bb9493a9396a950cfda6744384f..2ca0900c3c65f3cfeb130c7fa682ed4fa0e359c7 100644
(file)
--- a/
hw/msix.c
+++ b/
hw/msix.c
@@
-175,7
+175,7
@@
void msix_write_config(PCIDevice *dev, uint32_t addr,
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;
}