iwlwifi: unmap memory before use
authorReinette Chatre <reinette.chatre@intel.com>
Fri, 30 Oct 2009 21:36:10 +0000 (14:36 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 2 Nov 2009 20:39:46 +0000 (15:39 -0500)
commitc33de6256a07869b48830e3a26fb6942ea8c4f79
tree0e6e52d104120b5881613e73e7472eac7ded2f56
parentc2e61da29d92df864dc5eec81d774199b02d7023
iwlwifi: unmap memory before use

Handling responses to driver originated commands include passing the
original command buffer to the caller. At this time it is possible for a
callback to be invoked that is passed this command buffer and thus likely
to access it.

We need to make sure that the memory associated with that buffer is not DMA
mapped at the time.

Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-tx.c