diff options
author | Daniel C Halperin <daniel.c.halperin@intel.com> | 2009-07-31 14:28:06 -0700 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-04 16:44:22 -0400 |
commit | 8ce73f3abd064081706cc337c771378fc4431ef3 (patch) | |
tree | 17b13367a71fb1a9bce1d60ddec7a11ddbaf8e69 /drivers/net/wireless/iwlwifi/iwl-tx.c | |
parent | 92ca8d437fdbb482752534885d86af264897da85 (diff) | |
download | op-kernel-dev-8ce73f3abd064081706cc337c771378fc4431ef3.zip op-kernel-dev-8ce73f3abd064081706cc337c771378fc4431ef3.tar.gz |
iwlwifi: clear iwl_cmd_meta structure before use
Resolve an issue in which out-dated fields in iwl_cmd_meta
could be used for later hardware commands.
Signed-off-by: Daniel C Halperin <daniel.c.halperin@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-tx.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-tx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-tx.c b/drivers/net/wireless/iwlwifi/iwl-tx.c index 6bb9602..288b871 100644 --- a/drivers/net/wireless/iwlwifi/iwl-tx.c +++ b/drivers/net/wireless/iwlwifi/iwl-tx.c @@ -970,6 +970,7 @@ int iwl_enqueue_hcmd(struct iwl_priv *priv, struct iwl_host_cmd *cmd) out_cmd = txq->cmd[idx]; out_meta = &txq->meta[idx]; + memset(out_meta, 0, sizeof(*out_meta)); /* re-initialize to NULL */ out_meta->flags = cmd->flags; if (cmd->flags & CMD_WANT_SKB) out_meta->source = cmd; |