]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
wifi: iwlwifi: dbg_ini: move iwl_dbg_tlv_free outside of debugfs ifdef
authorShahar S Matityahu <shahar.s.matityahu@intel.com>
Fri, 10 May 2024 14:06:39 +0000 (17:06 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 29 May 2024 13:30:13 +0000 (15:30 +0200)
The driver should call iwl_dbg_tlv_free even if debugfs is not defined
since ini mode does not depend on debugfs ifdef.

Fixes: 68f6f492c4fa ("iwlwifi: trans: support loading ini TLVs from external file")
Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Reviewed-by: Luciano Coelho <luciano.coelho@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://msgid.link/20240510170500.c8e3723f55b0.I5e805732b0be31ee6b83c642ec652a34e974ff10@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-drv.c

index 33654f228ee871f7b8bbe1463351cc677904662a..d156a9c6419404b46995068f9589b2f156d8e01a 100644 (file)
@@ -1815,8 +1815,8 @@ struct iwl_drv *iwl_drv_start(struct iwl_trans *trans)
 err_fw:
 #ifdef CONFIG_IWLWIFI_DEBUGFS
        debugfs_remove_recursive(drv->dbgfs_drv);
-       iwl_dbg_tlv_free(drv->trans);
 #endif
+       iwl_dbg_tlv_free(drv->trans);
        kfree(drv);
 err:
        return ERR_PTR(ret);