]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/i2c/busses/i2c-amd756.c
afs: the AFS RPC op CBGetCapabilities is actually CBTellMeAboutYourself
[linux-2.6-omap-h63xx.git] / drivers / i2c / busses / i2c-amd756.c
index 573abe4408426fb6ce288cc3ada689e956fdc35e..2fa43183d3759bc8b2d1ea284ca30984aee44fad 100644 (file)
@@ -335,7 +335,7 @@ static int __devinit amd756_probe(struct pci_dev *pdev,
        u8 temp;
        
        /* driver_data might come from user-space, so check it */
-       if (id->driver_data > ARRAY_SIZE(chipname))
+       if (id->driver_data >= ARRAY_SIZE(chipname))
                return -EINVAL;
 
        if (amd756_ioport) {