瀏覽代碼

[POWERPC] QE: Fix QE firmware uploading limit

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>
Timur Tabi 17 年之前
父節點
當前提交
6f913160fa
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/powerpc/sysdev/qe_lib/qe.c

+ 1 - 1
arch/powerpc/sysdev/qe_lib/qe.c

@@ -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;
 	}