Commit 2e6bd24
committed
wifi: mac80211: fix prep_connection error path
If prep_channel fails in prep_connection, the code releases
the deflink's chanctx, which is wrong since we may be using
a different link. It's already wrong to even do that always
though, since we might still have the station. Remove it
only if prep_channel succeeded and later updates fail.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240318184907.2780c1f08c3d.I033c9b15483933088f32a2c0789612a33dd33d82@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>1 parent ec50f31 commit 2e6bd24
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7652 | 7652 | | |
7653 | 7653 | | |
7654 | 7654 | | |
7655 | | - | |
| 7655 | + | |
7656 | 7656 | | |
7657 | 7657 | | |
7658 | 7658 | | |
| |||
7663 | 7663 | | |
7664 | 7664 | | |
7665 | 7665 | | |
| 7666 | + | |
| 7667 | + | |
7666 | 7668 | | |
7667 | | - | |
7668 | 7669 | | |
7669 | 7670 | | |
7670 | 7671 | | |
| |||
0 commit comments