diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/htc.c')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/htc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/htc.c b/drivers/net/wireless/ath/ath6kl/htc.c index f88a7c9e4148..7bc988438ead 100644 --- a/drivers/net/wireless/ath/ath6kl/htc.c +++ b/drivers/net/wireless/ath/ath6kl/htc.c | |||
@@ -1643,7 +1643,6 @@ static int ath6kl_htc_rx_process_packets(struct htc_target *target, | |||
1643 | int status = 0; | 1643 | int status = 0; |
1644 | 1644 | ||
1645 | list_for_each_entry_safe(packet, tmp_pkt, comp_pktq, list) { | 1645 | list_for_each_entry_safe(packet, tmp_pkt, comp_pktq, list) { |
1646 | list_del(&packet->list); | ||
1647 | ep = &target->endpoint[packet->endpoint]; | 1646 | ep = &target->endpoint[packet->endpoint]; |
1648 | 1647 | ||
1649 | /* process header for each of the recv packet */ | 1648 | /* process header for each of the recv packet */ |
@@ -1652,6 +1651,8 @@ static int ath6kl_htc_rx_process_packets(struct htc_target *target, | |||
1652 | if (status) | 1651 | if (status) |
1653 | return status; | 1652 | return status; |
1654 | 1653 | ||
1654 | list_del(&packet->list); | ||
1655 | |||
1655 | if (list_empty(comp_pktq)) { | 1656 | if (list_empty(comp_pktq)) { |
1656 | /* | 1657 | /* |
1657 | * Last packet's more packet flag is set | 1658 | * Last packet's more packet flag is set |