diff options
author | Zhu Yi <yi.zhu@intel.com> | 2009-01-08 19:19:58 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-16 23:08:23 +0100 |
commit | 73e1a65d3c4a013f6fa56e47133be95143a75fe3 (patch) | |
tree | 825a40a62522c5571f0c617bae95c4230dc60b6b /net | |
parent | ath9k: Fix an operator typo in REG_DOMAIN_2GHZ_MASK (diff) | |
download | linux-73e1a65d3c4a013f6fa56e47133be95143a75fe3.tar.xz linux-73e1a65d3c4a013f6fa56e47133be95143a75fe3.zip |
iwlwifi: remove CMD_WANT_SKB flag if send_cmd_sync failure
In function iwl_send_cmd_sync(), if the flag CMD_WANT_SKB is set but
we are not provided with a valid SKB (cmd->meta.u.skb == NULL), we need
to remove the CMD_WANT_SKB flag from the TX cmd queue. Otherwise in case
the cmd comes in later, it will possibly set an invalid address. Thus
it causes an invalid memory access.
This fixed the bug http://bugzilla.kernel.org/show_bug.cgi?id=11326.
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions