]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: clear rxq->queue in queue reset
authorZhu Yi <yi.zhu@intel.com>
Tue, 23 Mar 2010 02:33:41 +0000 (19:33 -0700)
committerReinette Chatre <reinette.chatre@intel.com>
Fri, 2 Apr 2010 19:50:37 +0000 (12:50 -0700)
commitadf7da2d45d510ef987c1dbf784ea03792037a78
treea2efa613963176e4e2e37e9031cf6be1f579a010
parent8f448ffee7a955c9f8fff7016342a598a104a3c4
iwlwifi: clear rxq->queue in queue reset

In iwl_rx_queue_reset(), we didn't clear the rxq->queue[]. This might
cause the same rxb appears on multiple places in rxq->queue. Although
this won't cause any problem because of the read and write pointers
protection in rxq, we'd better clear it to avoid misleading.

Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
drivers/net/wireless/iwlwifi/iwl-agn-lib.c