]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: kzalloc txb array
authorJohannes Berg <johannes.berg@intel.com>
Mon, 17 May 2010 09:37:33 +0000 (02:37 -0700)
committerReinette Chatre <reinette.chatre@intel.com>
Sun, 6 Jun 2010 06:18:11 +0000 (23:18 -0700)
commit706b15cc8501cf561eeec868211bc6579824e990
tree31958b056a944f6efe5ba7aa7dbcdd1dc2e3dcd4
parentd17fc8524f20560b54c261f28cd32956b546e270
iwlwifi: kzalloc txb array

When we allocate queues, we currently don't
use kzalloc() right now. When we then free
those queues again without having used all
entries, we may end up trying to free random
pointers found in the txb array since it was
never initialised. This fixes it simply by
using kzalloc().

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
drivers/net/wireless/iwlwifi/iwl-tx.c