summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2017-01-24 16:54:09 +0100
committerRafał Miłecki <rafal@milecki.pl>2017-01-24 23:01:46 +0100
commite9d21739211261903441d150bc4b74732137c580 (patch)
treef2b8b8f2a80bb295b3f113057e8eeab032536f4a
parent81f2196bb1c2c861c7335b75ad3375dd364978a6 (diff)
downloadmtk-20170518-e9d21739211261903441d150bc4b74732137c580.zip
mtk-20170518-e9d21739211261903441d150bc4b74732137c580.tar.gz
mtk-20170518-e9d21739211261903441d150bc4b74732137c580.tar.bz2
mac80211: brcmfmac: don't use uninitialize mem for country codes
There was a bug in brcmfmac patch that could result in treating random memory as source of country codes. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
-rw-r--r--package/kernel/mac80211/patches/863-brcmfmac-add-in-driver-tables-with-country-codes.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/kernel/mac80211/patches/863-brcmfmac-add-in-driver-tables-with-country-codes.patch b/package/kernel/mac80211/patches/863-brcmfmac-add-in-driver-tables-with-country-codes.patch
index b7d6aec..e7551c3 100644
--- a/package/kernel/mac80211/patches/863-brcmfmac-add-in-driver-tables-with-country-codes.patch
+++ b/package/kernel/mac80211/patches/863-brcmfmac-add-in-driver-tables-with-country-codes.patch
@@ -24,8 +24,8 @@ Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
+ { "JP", "JP", 78 },
+ { "US", "Q2", 86 },
+ };
-+ struct brcmfmac_pd_cc_entry *cc_ent;
-+ int table_size;
++ struct brcmfmac_pd_cc_entry *cc_ent = NULL;
++ int table_size = 0;
+
+ if (of_machine_is_compatible("netgear,r8000")) {
+ cc_ent = netgear_r8000_cc_ent;