aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2016-03-21 20:42:56 +0000
committerJohn Crispin <john@openwrt.org>2016-03-21 20:42:56 +0000
commit1898144b5f0f5cfe45f09222e6ccd1544defb619 (patch)
treeb1989ed09c7b2d43384822582a14ce49bb9103ca /package/kernel
parent5d2f529c9b83d5f769258928b5ddd82f4dc9979e (diff)
downloadupstream-1898144b5f0f5cfe45f09222e6ccd1544defb619.tar.gz
upstream-1898144b5f0f5cfe45f09222e6ccd1544defb619.tar.bz2
upstream-1898144b5f0f5cfe45f09222e6ccd1544defb619.zip
mt76: fix compile error
gcc complained about uninitialized variables Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 49065
Diffstat (limited to 'package/kernel')
-rw-r--r--package/kernel/mt76/patches/000-uninitialized.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/kernel/mt76/patches/000-uninitialized.patch b/package/kernel/mt76/patches/000-uninitialized.patch
new file mode 100644
index 00000000000..f27c9a29944
--- /dev/null
+++ b/package/kernel/mt76/patches/000-uninitialized.patch
@@ -0,0 +1,11 @@
+--- a/mt7603_mac.c
++++ b/mt7603_mac.c
+@@ -474,7 +474,7 @@
+ bool stbc = false;
+ int n_rates = sta->n_rates;
+ u8 bw, bw_prev, bw_idx = 0;
+- u16 val[8];
++ u16 val[8] = { 0 };
+ u32 w9 = mt76_rr(dev, addr + 9 * 4);
+ int count;
+ int i;
22 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175