iwlwifi: pcie: clear command data on freeing
authorJohannes Berg <johannes.berg@intel.com>
Tue, 9 Sep 2014 19:16:06 +0000 (21:16 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 14 Sep 2014 09:56:39 +0000 (12:56 +0300)
commit5d4185ae0c68eeff26d0390a4e99b6e7359a8b83
treeefca655d686da4f1df5bff67eac467fff2daf542
parentc2a2b28bb7fbcb8e0e11b84714992750bba7b699
iwlwifi: pcie: clear command data on freeing

When freeing the structures used for command data, clear their
memory as they may have contained key material at some point.
Also clear the duplicated buffer when freeing it to be safe;
currently key material is never put there but that may change.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/pcie/rx.c
drivers/net/wireless/iwlwifi/pcie/tx.c