iwlwifi: dbg_ini: move iwl_dbg_tlv_free outside of debugfs ifdef
The driver should call iwl_dbg_tlv_free even if debugfs is not defined
since ini mode does not depend on debugfs ifdef.
Signed-off-by: Shahar S Matityahu <shahar.s.matityahu@intel.com>
Fixes: 68f6f492c4 ("iwlwifi: trans: support loading ini TLVs from external file")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
committed by
Johannes Berg
parent
072b30642f
commit
abcbef5977
@@ -1662,8 +1662,8 @@ struct iwl_drv *iwl_drv_start(struct iwl_trans *trans)
|
|||||||
err_fw:
|
err_fw:
|
||||||
#ifdef CONFIG_IWLWIFI_DEBUGFS
|
#ifdef CONFIG_IWLWIFI_DEBUGFS
|
||||||
debugfs_remove_recursive(drv->dbgfs_drv);
|
debugfs_remove_recursive(drv->dbgfs_drv);
|
||||||
iwl_fw_dbg_free(drv->trans);
|
|
||||||
#endif
|
#endif
|
||||||
|
iwl_fw_dbg_free(drv->trans);
|
||||||
kfree(drv);
|
kfree(drv);
|
||||||
err:
|
err:
|
||||||
return ERR_PTR(ret);
|
return ERR_PTR(ret);
|
||||||
|
|||||||
Reference in New Issue
Block a user