diff options
author | Johannes Berg <johannes.berg@intel.com> | 2014-12-22 12:51:25 +0100 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-12-22 12:51:25 +0100 |
commit | 5875755c577b00b06aba77ba471175c3e3a33c25 (patch) | |
tree | 8dea75f24e4396e017a3ed3612b20a74ff5a7392 /net | |
parent | 8d819a92cc7fef4294dd11faa60050fd3c5460e0 (diff) | |
download | linux-5875755c577b00b06aba77ba471175c3e3a33c25.tar.gz linux-5875755c577b00b06aba77ba471175c3e3a33c25.tar.xz |
mac80211_hwsim: fix check for custom world regdom array size
David Binderman reports that the conditions in the first loop
are the wrong way around - checking the array contents before
the size.
Instead of leaving the empty loop there and reordering the two
checks unify it into a single loop that skips over non-matches
and exits after the first match.
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions