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

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

Merge "diag: Fix for possible memory corruption"

parents 34fa8a01 ff0f7a8e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1259,7 +1259,7 @@ int diag_create_msg_mask_table_entry(struct diag_msg_mask_t *msg_mask,
	msg_mask->ssid_last = range->ssid_last;
	msg_mask->ssid_last_tools = range->ssid_last;
	msg_mask->range = msg_mask->ssid_last - msg_mask->ssid_first + 1;
	if (msg_mask->range > MAX_SSID_PER_RANGE)
	if (msg_mask->range < MAX_SSID_PER_RANGE)
		msg_mask->range = MAX_SSID_PER_RANGE;
	msg_mask->range_tools = msg_mask->range;
	mutex_init(&msg_mask->lock);