wifi: iwlwifi: mld: inform trans on init failure
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Sun, 20 Apr 2025 06:59:56 +0000 (09:59 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 23 Apr 2025 12:45:29 +0000 (14:45 +0200)
commitc155f7c3ad1e70a1e203047b20e3bca235ada207
tree1b209969af36a2f079f9072cfcbaa995d9da9da5
parent4f7a07791944e57ea5f12ce03939e3ad0fd50504
wifi: iwlwifi: mld: inform trans on init failure

If starting the op mode failed, the opmode memory is being freed,
so trans->op_mode needs to be NULLified. Otherwise, trans will access
already freed memory.
Call iwl_trans_op_mode_leave in that case.

Fixes: d1e879ec600f ("wifi: iwlwifi: add iwlmld sub-driver")
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250420095642.3331d1686556.Ifaf15bdd8ef8c59e04effbd2e7aa0034b30eeacb@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mld/mld.c