|
@@ -149,7 +149,6 @@ static int mwifiex_unregister(struct mwifiex_adapter *adapter)
|
|
|
|
|
|
kfree(adapter->regd);
|
|
|
|
|
|
- vfree(adapter->chan_stats);
|
|
|
kfree(adapter);
|
|
|
return 0;
|
|
|
}
|
|
@@ -633,6 +632,7 @@ static int _mwifiex_fw_dpc(const struct firmware *firmware, void *context)
|
|
|
goto done;
|
|
|
|
|
|
err_add_intf:
|
|
|
+ vfree(adapter->chan_stats);
|
|
|
wiphy_unregister(adapter->wiphy);
|
|
|
wiphy_free(adapter->wiphy);
|
|
|
err_init_fw:
|
|
@@ -1417,6 +1417,7 @@ mwifiex_shutdown_sw(struct mwifiex_adapter *adapter)
|
|
|
mwifiex_del_virtual_intf(adapter->wiphy, &priv->wdev);
|
|
|
rtnl_unlock();
|
|
|
}
|
|
|
+ vfree(adapter->chan_stats);
|
|
|
|
|
|
mwifiex_dbg(adapter, INFO, "%s, successful\n", __func__);
|
|
|
exit_return:
|
|
@@ -1726,6 +1727,7 @@ int mwifiex_remove_card(struct mwifiex_adapter *adapter)
|
|
|
mwifiex_del_virtual_intf(adapter->wiphy, &priv->wdev);
|
|
|
rtnl_unlock();
|
|
|
}
|
|
|
+ vfree(adapter->chan_stats);
|
|
|
|
|
|
wiphy_unregister(adapter->wiphy);
|
|
|
wiphy_free(adapter->wiphy);
|