]> git.baikalelectronics.ru Git - kernel.git/commit
iwlagn: fix cmd queue unmap
authorJohannes Berg <johannes.berg@intel.com>
Mon, 27 Jun 2011 14:48:52 +0000 (07:48 -0700)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Mon, 27 Jun 2011 14:50:45 +0000 (07:50 -0700)
commitbe278fe854fe4a852ceaaa0306835aac2ace50f6
tree5ed58ab5a2665e9568dcea8fb00934c30c4fdb27
parent7bc8de6c2fd88e23e22e0408bc86f1268aaa996b
iwlagn: fix cmd queue unmap

When we stop the device while a command is in
flight that uses multiple TBs, we can leak the
DMA buffers for the second and higher TBs. Fix
this by using iwlagn_unmap_tfd() as we do when
we normally recover the entry.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-tx.c