iwlwifi: change the order of freeing memory
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 9 Oct 2009 20:20:17 +0000 (13:20 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 12 Oct 2009 19:55:52 +0000 (15:55 -0400)
commitd7c76f4c50887a7d7279373c1138ac56a1d6db3b
tree3c08f507d6352c6f69b501b2cd92368dc27d42b4
parent10c435f18b8cb78a5870c08d52955594f5ec9c31
iwlwifi: change the order of freeing memory

Need to free the dynamic allocated memory before ieee80211_free_hw();
once call ieee80211_free_hw(), should not reference to "priv" data
structure.

Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl3945-base.c