Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f913160 authored by Timur Tabi's avatar Timur Tabi Committed by Kumar Gala
Browse files

[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: default avatarTimur Tabi <timur@freescale.com>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent a55387e5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}