OSDN Git Service

Fix a logic error in pci_device_openbsd_write().
authorMatthieu Herrb <matthieu.herrb@laas.fr>
Tue, 25 Nov 2008 11:42:15 +0000 (12:42 +0100)
committerMatthieu Herrb <matthieu.herrb@laas.fr>
Tue, 25 Nov 2008 11:42:15 +0000 (12:42 +0100)
src/openbsd_pci.c

index 7bb20d6..12547f0 100644 (file)
@@ -186,7 +186,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;