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