]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit60017fcea3c48db747387355d38be4e7d9c1844a
tree0e6e52d104120b5881613e73e7472eac7ded2f56
parente17a7b8260c57bef9d11e7514372cb366c3d655b
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