diff options
Diffstat (limited to 'drivers/net/rionet.c')
-rw-r--r-- | drivers/net/rionet.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/rionet.c b/drivers/net/rionet.c index a6fd27a2cc3d..ec59e29807a6 100644 --- a/drivers/net/rionet.c +++ b/drivers/net/rionet.c | |||
@@ -362,8 +362,7 @@ static int rionet_close(struct net_device *ndev) | |||
362 | netif_carrier_off(ndev); | 362 | netif_carrier_off(ndev); |
363 | 363 | ||
364 | for (i = 0; i < RIONET_RX_RING_SIZE; i++) | 364 | for (i = 0; i < RIONET_RX_RING_SIZE; i++) |
365 | if (rnet->rx_skb[i]) | 365 | kfree_skb(rnet->rx_skb[i]); |
366 | kfree_skb(rnet->rx_skb[i]); | ||
367 | 366 | ||
368 | list_for_each_entry_safe(peer, tmp, &rionet_peers, node) { | 367 | list_for_each_entry_safe(peer, tmp, &rionet_peers, node) { |
369 | if (rionet_active[peer->rdev->destid]) { | 368 | if (rionet_active[peer->rdev->destid]) { |