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

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

Merge "diag: Avoid possible out of bound access while sending masks"

parents 61a274fb 1e6a34af
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1156,7 +1156,7 @@ static int diag_cmd_set_msg_mask(unsigned char *src_buf, int src_len,
			mask_size = MAX_SSID_PER_RANGE;
			mask->range_tools = MAX_SSID_PER_RANGE;
			mask->ssid_last_tools =
				mask->ssid_first + mask->range_tools;
				mask->ssid_first + mask->range_tools - 1;
		}
		if (ssid_range.ssid_last > mask->ssid_last_tools) {
			pr_debug("diag: Msg SSID range mismatch\n");