diff options
| -rw-r--r-- | drivers/char/pcmcia/ipwireless/hardware.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/pcmcia/ipwireless/hardware.c b/drivers/char/pcmcia/ipwireless/hardware.c index 814ea3228ca2..d1e69de19156 100644 --- a/drivers/char/pcmcia/ipwireless/hardware.c +++ b/drivers/char/pcmcia/ipwireless/hardware.c | |||
| @@ -563,9 +563,9 @@ static struct ipw_rx_packet *pool_allocate(struct ipw_hardware *hw, | |||
| 563 | if (!list_empty(&hw->rx_pool)) { | 563 | if (!list_empty(&hw->rx_pool)) { |
| 564 | packet = list_first_entry(&hw->rx_pool, | 564 | packet = list_first_entry(&hw->rx_pool, |
| 565 | struct ipw_rx_packet, queue); | 565 | struct ipw_rx_packet, queue); |
| 566 | list_del(&packet->queue); | ||
| 567 | hw->rx_pool_size--; | 566 | hw->rx_pool_size--; |
| 568 | spin_unlock_irqrestore(&hw->lock, flags); | 567 | spin_unlock_irqrestore(&hw->lock, flags); |
| 568 | list_del(&packet->queue); | ||
| 569 | } else { | 569 | } else { |
| 570 | static int min_capacity = 256; | 570 | static int min_capacity = 256; |
| 571 | int new_capacity; | 571 | int new_capacity; |
| @@ -610,7 +610,7 @@ static void pool_free(struct ipw_hardware *hw, struct ipw_rx_packet *packet) | |||
| 610 | kfree(packet); | 610 | kfree(packet); |
| 611 | else { | 611 | else { |
| 612 | hw->rx_pool_size++; | 612 | hw->rx_pool_size++; |
| 613 | list_add_tail(&packet->queue, &hw->rx_pool); | 613 | list_add(&packet->queue, &hw->rx_pool); |
| 614 | } | 614 | } |
| 615 | } | 615 | } |
| 616 | 616 | ||
