diff options
author | David S. Miller <davem@davemloft.net> | 2009-09-23 16:23:46 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-09-23 16:23:46 -0700 |
commit | 139d6065c83071d5f66cd013a274a43699f8e2c1 (patch) | |
tree | b5f0e79e24449ff3284bc5f2f8d3aed041fda108 /drivers/net/wireless/iwlwifi/iwl-5000.c | |
parent | efb064dec6e35618ddc04f3ba49f70e528fbe069 (diff) | |
parent | b37fa870c7ccb500c7bf6aabc72cefa757da9791 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6
Conflicts:
drivers/net/wireless/iwlwifi/iwl-rx.c
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-5000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index 1d539e3b8db..a6391c7fea5 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c @@ -1163,6 +1163,12 @@ static int iwl5000_tx_status_reply_tx(struct iwl_priv *priv, agg->frame_count, txq_id, idx); hdr = iwl_tx_queue_get_hdr(priv, txq_id, idx); + if (!hdr) { + IWL_ERR(priv, + "BUG_ON idx doesn't point to valid skb" + " idx=%d, txq_id=%d\n", idx, txq_id); + return -1; + } sc = le16_to_cpu(hdr->seq_ctrl); if (idx != (SEQ_TO_SN(sc) & 0xff)) { |