The patch titled spidernet: another skb mem leak has been added to the -mm tree. Its filename is spidernet-another-skb-mem-leak.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: spidernet: another skb mem leak From: Linas Vepstas <linas@xxxxxxxxxxxxxx> Another skb leak in an error branch. Fix this by adding call to dev_kfree_skb_irq() after moving to a more appropriate spot. Signed-off-by: Linas Vepstas <linas@xxxxxxxxxxxxxx> Cc: James K Lewis <jklewis@xxxxxxxxxx> Cc: Arnd Bergmann <arnd@xxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/net/spider_net.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff -puN drivers/net/spider_net.c~spidernet-another-skb-mem-leak drivers/net/spider_net.c --- a/drivers/net/spider_net.c~spidernet-another-skb-mem-leak +++ a/drivers/net/spider_net.c @@ -897,19 +897,8 @@ spider_net_pass_skb_up(struct spider_net data_status = descr->data_status; data_error = descr->data_error; - netdev = card->netdev; - /* the cases we'll throw away the packet immediately */ - if (data_error & SPIDER_NET_DESTROY_RX_FLAGS) { - if (netif_msg_rx_err(card)) - pr_err("error in received descriptor found, " - "data_status=x%08x, data_error=x%08x\n", - data_status, data_error); - card->spider_stats.rx_desc_error++; - return 0; - } - skb = descr->skb; skb->dev = netdev; skb_put(skb, descr->valid_size); @@ -1020,6 +1009,18 @@ spider_net_decode_one_descr(struct spide goto refill; } + /* The cases we'll throw away the packet immediately */ + if (descr->data_error & SPIDER_NET_DESTROY_RX_FLAGS) { + if (netif_msg_rx_err(card)) + pr_err("%s: error in received descriptor found, " + "data_status=x%08x, data_error=x%08x\n", + card->netdev->name, + descr->data_status, descr->data_error); + card->spider_stats.rx_desc_error++; + dev_kfree_skb_irq(descr->skb); + goto refill; + } + /* ok, we've got a packet in descr */ result = spider_net_pass_skb_up(descr, card, napi); refill: _ Patches currently in -mm which might be from linas@xxxxxxxxxxxxxx are origin.patch hvcs-char-driver-janitoring-move-block-of-code.patch spidernet-dma-coalescing.patch spidernet-add-net_ratelimit-to-suppress-long-output.patch spidernet-rx-locking.patch spidernet-refactor-rx-refill.patch spidernet-rx-skb-mem-leak.patch spidernet-another-skb-mem-leak.patch spidernet-cleanup-return-codes.patch spidernet-rx-refill.patch spidernet-merge-error-branches.patch spidernet-remove-unused-variable.patch spidernet-rx-chain-tail.patch spidernet-turn-rx-irq-back-on.patch spidernet-memory-barrier.patch spidernet-avoid-possible-rx-chain-corruption.patch spidernet-rx-debugging-printout.patch spidernet-rework-rx-linked-list.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html