| Message ID | 1423329201-32163-1-git-send-email-j@bitron.ch |
|---|---|
| State | Accepted |
| Commit | 0a78b599b34cc8b5fe6fe82f90e90234e8ab7a56 |
| Headers | show |
diff --git a/hw/xfree86/int10/generic.c b/hw/xfree86/int10/generic.c index 012d194..8d5c4da 100644 --- a/hw/xfree86/int10/generic.c +++ b/hw/xfree86/int10/generic.c @@ -104,7 +104,7 @@ readIntVec(struct pci_device *dev, unsigned char *buf, int len) { void *map; - if (!pci_device_map_legacy(dev, 0, len, 0, &map)) + if (pci_device_map_legacy(dev, 0, len, 0, &map)) return FALSE; memcpy(buf, map, len); diff --git a/hw/xfree86/os-support/linux/int10/linux.c b/hw/xfree86/os-support/linux/int10/linux.c index 79b9a88..6ca118f 100644 --- a/hw/xfree86/os-support/linux/int10/linux.c +++ b/hw/xfree86/os-support/linux/int10/linux.c @@ -75,7 +75,7 @@ readLegacy(struct pci_device *dev, unsigned char *buf, int base, int len) { void *map; - if (!pci_device_map_legacy(dev, base, len, 0, &map)) + if (pci_device_map_legacy(dev, base, len, 0, &map)) return FALSE; memcpy(buf, map, len);
pci_device_map_legacy returns 0 on success. Signed-off-by: Jürg Billeter <j@bitron.ch> --- hw/xfree86/int10/generic.c | 2 +- hw/xfree86/os-support/linux/int10/linux.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)