[POWERPC] QE: Fix QE firmware uploading limit
authorTimur Tabi <timur@freescale.com>
Mon, 3 Mar 2008 17:11:30 +0000 (11:11 -0600)
committerKumar Gala <galak@kernel.crashing.org>
Fri, 7 Mar 2008 14:55:02 +0000 (08:55 -0600)
Fix a typo in qe_upload_firmware() that prevented uploading firmware on
systems with more than one RISC core.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/qe_lib/qe.c

index 6efbd5e5bb1b6f1b8119ed8ccf7e8ed35591a015..f963fbf21ef021bd85566dbf3e469375ab7621bc 100644 (file)
@@ -509,7 +509,7 @@ int qe_upload_firmware(const struct qe_firmware *firmware)
        }
 
        /* Validate some of the fields */
-       if ((firmware->count < 1) || (firmware->count >= MAX_QE_RISC)) {
+       if ((firmware->count < 1) || (firmware->count > MAX_QE_RISC)) {
                printk(KERN_ERR "qe-firmware: invalid data\n");
                return -EINVAL;
        }