diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2008-11-25 11:40:57 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2008-11-25 11:40:57 +0000 |
commit | cc61c6336fa09a5b599987ac06829b4b6681d103 (patch) | |
tree | 6a7ba9d6fd29440cea163609d98a4e6fb0578aa1 | |
parent | 0ec73b5c029ea7c76af954b2b49c10cb7541c51c (diff) |
Fix a logic error in pci_device_openbsd_write() that actually
prevented it to write anything.
-rw-r--r-- | lib/libpciaccess/src/openbsd_pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpciaccess/src/openbsd_pci.c b/lib/libpciaccess/src/openbsd_pci.c index 356074152..e4f259224 100644 --- a/lib/libpciaccess/src/openbsd_pci.c +++ b/lib/libpciaccess/src/openbsd_pci.c @@ -220,7 +220,7 @@ pci_device_openbsd_write(struct pci_device *dev, const void *data, { struct pci_io io; - if ((offset % 4) == 0 || (size % 4) == 0) + if ((offset % 4) != 0 || (size % 4) != 0) return EINVAL; io.pi_sel.pc_bus = dev->bus; |