Explorar o código

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>
Timur Tabi %!s(int64=17) %!d(string=hai) anos
pai
achega
491fb6dea9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      drivers/qe/qe.c

+ 1 - 1
drivers/qe/qe.c

@@ -334,7 +334,7 @@ int qe_upload_firmware(const struct qe_firmware *firmware)
 	}
 	}
 
 
 	/* Validate some of the fields */
 	/* Validate some of the fields */
-	if ((firmware->count < 1) || (firmware->count >= MAX_QE_RISC)) {
+	if ((firmware->count < 1) || (firmware->count > MAX_QE_RISC)) {
 		printf("Invalid data\n");
 		printf("Invalid data\n");
 		return -EINVAL;
 		return -EINVAL;
 	}
 	}