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

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

Merge "cfg80211: Validate frequencies nested in NL80211_ATTR_SCAN_FREQUENCIES"

parents 6be637ba 922eba92
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -5771,6 +5771,10 @@ static int validate_scan_freqs(struct nlattr *freqs)
	struct nlattr *attr1, *attr2;
	int n_channels = 0, tmp1, tmp2;

	nla_for_each_nested(attr1, freqs, tmp1)
		if (nla_len(attr1) != sizeof(u32))
			return 0;

	nla_for_each_nested(attr1, freqs, tmp1)
		if (nla_len(attr1) != sizeof(u32))
			return 0;