Repository navigation
Commit febab6b
iwlwifi: fix leaks/bad data after failed firmware load
[ Upstream commit ab07506 ]
If firmware load fails after having loaded some parts of the
firmware, e.g. the IML image, then this would leak. For the
host command list we'd end up running into a WARN on the next
attempt to load another firmware image.
Fix this by calling iwl_dealloc_ucode() on failures, and make
that also clear the data so we start fresh on the next round.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20211210110539.1f742f0eb58a.I1315f22f6aa632d94ae2069f85e1bca5e734dce0@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 81d2e96 commit febab6b
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
188 | 191 | | |
189 | 192 | | |
190 | 193 | | |
| |||
1365 | 1368 | | |
1366 | 1369 | | |
1367 | 1370 | | |
| 1371 | + | |
1368 | 1372 | | |
1369 | 1373 | | |
1370 | 1374 | | |
| |||
1634 | 1638 | | |
1635 | 1639 | | |
1636 | 1640 | | |
| 1641 | + | |
1637 | 1642 | | |
1638 | 1643 | | |
1639 | 1644 | | |
| |||
1649 | 1654 | | |
1650 | 1655 | | |
1651 | 1656 | | |
| 1657 | + | |
| 1658 | + | |
| 1659 | + | |
1652 | 1660 | | |
1653 | 1661 | | |
1654 | 1662 | | |
| |||
0 commit comments