diff options
Diffstat (limited to 'drivers/net/wan/cosa.c')
-rw-r--r-- | drivers/net/wan/cosa.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wan/cosa.c b/drivers/net/wan/cosa.c index 0d7ba117ef60..d276d72ee3b7 100644 --- a/drivers/net/wan/cosa.c +++ b/drivers/net/wan/cosa.c | |||
@@ -731,8 +731,7 @@ static char *cosa_net_setup_rx(struct channel_data *chan, int size) | |||
731 | * We can safely fall back to non-dma-able memory, because we have | 731 | * We can safely fall back to non-dma-able memory, because we have |
732 | * the cosa->bouncebuf pre-allocated. | 732 | * the cosa->bouncebuf pre-allocated. |
733 | */ | 733 | */ |
734 | if (chan->rx_skb) | 734 | kfree_skb(chan->rx_skb); |
735 | kfree_skb(chan->rx_skb); | ||
736 | chan->rx_skb = dev_alloc_skb(size); | 735 | chan->rx_skb = dev_alloc_skb(size); |
737 | if (chan->rx_skb == NULL) { | 736 | if (chan->rx_skb == NULL) { |
738 | printk(KERN_NOTICE "%s: Memory squeeze, dropping packet\n", | 737 | printk(KERN_NOTICE "%s: Memory squeeze, dropping packet\n", |