Commit 27ec3c5
wifi: mwifiex: duplicate static structs used in driver instances
mwifiex_band_2ghz and mwifiex_band_5ghz are statically allocated, but
used and modified in driver instances. Duplicate them before using
them in driver instances so that different driver instances do not
influence each other.
This was observed on a board which has one PCIe and one SDIO mwifiex
adapter. It blew up in mwifiex_setup_ht_caps(). This was called with
the statically allocated struct which is modified in this function.
Cc: stable@vger.kernel.org
Fixes: d6bffe8 ("mwifiex: support for creation of AP interface")
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Acked-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://patch.msgid.link/20240809-mwifiex-duplicate-static-structs-v1-1-6837b903b1a4@pengutronix.de1 parent e37a918 commit 27ec3c5
1 file changed
Lines changed: 26 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4363 | 4363 | | |
4364 | 4364 | | |
4365 | 4365 | | |
4366 | | - | |
4367 | | - | |
4368 | | - | |
4369 | | - | |
| 4366 | + | |
| 4367 | + | |
| 4368 | + | |
| 4369 | + | |
| 4370 | + | |
| 4371 | + | |
| 4372 | + | |
| 4373 | + | |
| 4374 | + | |
| 4375 | + | |
| 4376 | + | |
| 4377 | + | |
| 4378 | + | |
| 4379 | + | |
| 4380 | + | |
| 4381 | + | |
| 4382 | + | |
| 4383 | + | |
| 4384 | + | |
4370 | 4385 | | |
| 4386 | + | |
4371 | 4387 | | |
4372 | 4388 | | |
4373 | 4389 | | |
| |||
4461 | 4477 | | |
4462 | 4478 | | |
4463 | 4479 | | |
4464 | | - | |
4465 | | - | |
| 4480 | + | |
4466 | 4481 | | |
4467 | 4482 | | |
4468 | 4483 | | |
| |||
4504 | 4519 | | |
4505 | 4520 | | |
4506 | 4521 | | |
| 4522 | + | |
| 4523 | + | |
| 4524 | + | |
| 4525 | + | |
| 4526 | + | |
4507 | 4527 | | |
0 commit comments