sound: vx222: fix input level control range check
[pandora-kernel.git] / drivers / char / viotape.c
index ffc9254..042c814 100644 (file)
@@ -867,7 +867,7 @@ static int viotape_probe(struct vio_dev *vdev, const struct vio_device_id *id)
        int j;
        struct device_node *node = vdev->dev.archdata.of_node;
 
-       if (i > VIOTAPE_MAX_TAPE)
+       if (i >= VIOTAPE_MAX_TAPE)
                return -ENODEV;
        if (!node)
                return -ENODEV;