Skip to content

Commit

Permalink
[POWERPC] QE: Fix QE firmware uploading limit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Timur Tabi authored and Kumar Gala committed Mar 7, 2008
1 parent a55387e commit 6f91316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/sysdev/qe_lib/qe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 6f91316

Please sign in to comment.