Skip to contentSkip to conversation

fix QE firmware uploading limit

PATCH Applied Timur Tabi 2 participants 2 messages Mar 3, 2008 – Mar 7, 2008 PowerPC

lore
Share & tools
lore

Timur Tabi

author
#0 lore raw

PATCH 1/1 fix QE firmware uploading limit

Fix a typo in qe_upload_firmware() that prevented uploading firmware on systems with more than one RISC core.

---

This patch is for 2.6.25.

 arch/powerpc/sysdev/qe_lib/qe.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/powerpc/sysdev/qe_lib/qe.c +1 -1
index 6efbd5e..f963fbf 100644
@@ -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;
 	}
Signature · 1 line
1.5.4
Applied
#1 lore raw
Quoted 10 lines · Timur Tabi

Fix a typo in qe_upload_firmware() that prevented uploading firmware on systems with more than one RISC core.

---

This patch is for 2.6.25.

arch/powerpc/sysdev/qe_lib/qe.c | 2 +-

1 files changed, 1 insertions(+), 1 deletions(-)

applied.

- k