Commit 07a6e3b
wifi: iwlwifi: mvm: Fix response handling in iwl_mvm_send_recovery_cmd()
1. The size of the response packet is not validated.
2. The response buffer is not freed.
Resolve these issues by switching to iwl_mvm_send_cmd_status(),
which handles both size validation and frees the buffer.
Fixes: f130bb7 ("iwlwifi: add FW recovery flow")
Signed-off-by: Daniel Gabay <[email protected]>
Signed-off-by: Miri Korenblit <[email protected]>
Link: https://patch.msgid.link/20241010140328.76c73185951e.Id3b6ca82ced2081f5ee4f33c997491d0ebda83f7@changeid
Signed-off-by: Johannes Berg <[email protected]>1 parent 32d95ab commit 07a6e3b
1 file changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1307 | 1307 | | |
1308 | 1308 | | |
1309 | 1309 | | |
| 1310 | + | |
1310 | 1311 | | |
1311 | | - | |
1312 | 1312 | | |
1313 | 1313 | | |
1314 | 1314 | | |
1315 | 1315 | | |
1316 | 1316 | | |
1317 | 1317 | | |
1318 | 1318 | | |
1319 | | - | |
1320 | 1319 | | |
1321 | 1320 | | |
1322 | 1321 | | |
| |||
1336 | 1335 | | |
1337 | 1336 | | |
1338 | 1337 | | |
1339 | | - | |
| 1338 | + | |
1340 | 1339 | | |
1341 | 1340 | | |
1342 | 1341 | | |
| |||
1347 | 1346 | | |
1348 | 1347 | | |
1349 | 1348 | | |
1350 | | - | |
1351 | | - | |
| 1349 | + | |
1352 | 1350 | | |
1353 | 1351 | | |
1354 | | - | |
| 1352 | + | |
1355 | 1353 | | |
1356 | 1354 | | |
1357 | 1355 | | |
| |||
0 commit comments