iwlwifi: pcie: initialize trans_pcie->ref_count on configure()
authorEliad Peller <eliad@wizery.com>
Wed, 4 Mar 2015 08:38:32 +0000 (10:38 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Thu, 26 Mar 2015 07:11:38 +0000 (09:11 +0200)
commit483f3ab1754f3c3698db622cc181249a0ca6372c
tree575cc16caf2b7e828ae2544515c62d050b1a13ff
parent4ffb36505c0d4e0909aa1812b0269eb181a51390
iwlwifi: pcie: initialize trans_pcie->ref_count on configure()

ref_count is currently initialized on start_fw(). This causes
some issues in restart flow, as currently active references
(e.g. unclaimed command) will get cleared, resulting in
invalid reference accounting.

Move the ref_count initialization to the configure() trans op,
so it won't be re-initialized on restart.

Signed-off-by: Eliad Peller <eliadx.peller@intel.com>
Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/pcie/trans.c