]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/infiniband/hw/hfi1/msix.c
IB/hfi1: Fix logical condition in msix_request_irq
[linux.git] / drivers / infiniband / hw / hfi1 / msix.c
index 4a620cf80588979ce5619b55e00f4ae81b3d65d8..db82db497b2cf3564b48a856d26c184bdd174d40 100644 (file)
@@ -133,7 +133,7 @@ static int msix_request_irq(struct hfi1_devdata *dd, void *arg,
        if (nr == dd->msix_info.max_requested)
                return -ENOSPC;
 
-       if (type < IRQ_SDMA && type >= IRQ_OTHER)
+       if (type < IRQ_SDMA || type >= IRQ_OTHER)
                return -EINVAL;
 
        irq = pci_irq_vector(dd->pcidev, nr);