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

Commit 6bddfdd3 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "wcnss: validate build version response correctly"

parents 28be7357 714e6514
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2292,8 +2292,8 @@ static void wcnss_process_smd_msg(void *buf, int len)
		break;

	case WCNSS_BUILD_VER_RSP:
		/* ToDo: WCNSS_MAX_BUILD_VER_LEN + sizeof(struct smd_msg_hdr) */
		if (len > WCNSS_MAX_BUILD_VER_LEN) {
		if (len > sizeof(struct smd_msg_hdr) +
		    WCNSS_MAX_BUILD_VER_LEN) {
			wcnss_log(ERR,
				  "invalid build version:%d\n", len);
			return;