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

Commit 6e842309 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "wcnss: fix integer underflow in wcnss_wlan"

parents 2690915f 5bad0120
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2368,6 +2368,12 @@ static void wcnss_nvbin_dnld(void)
		goto out;
	}

	if (nv->size <= 4) {
		pr_err("wcnss: %s: request_firmware failed for %s (file size = %zu)\n",
		       __func__, NVBIN_FILE, nv->size);
		goto out;
	}

	/* First 4 bytes in nv blob is validity bitmap.
	 * We cannot validate nv, so skip those 4 bytes.
	 */