Commit 50b2e87
wifi: mac80211: fix memory free error when registering wiphy fail
ieee80211_register_hw free the allocated cipher suites when
registering wiphy fail, and ieee80211_free_hw will re-free it.
set wiphy_ciphers_allocated to false after freeing allocated
cipher suites.
Signed-off-by: taozhang <taozhang@bestechnic.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>1 parent 03c0ad4 commit 50b2e87
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1439 | 1439 | | |
1440 | 1440 | | |
1441 | 1441 | | |
1442 | | - | |
| 1442 | + | |
1443 | 1443 | | |
| 1444 | + | |
| 1445 | + | |
1444 | 1446 | | |
1445 | 1447 | | |
1446 | 1448 | | |
| |||
1508 | 1510 | | |
1509 | 1511 | | |
1510 | 1512 | | |
1511 | | - | |
| 1513 | + | |
1512 | 1514 | | |
| 1515 | + | |
| 1516 | + | |
1513 | 1517 | | |
1514 | 1518 | | |
1515 | 1519 | | |
| |||
0 commit comments