Re: linux-2.0.36pre10: memory-leak in bridging code?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Mon, 21 Sep 1998 01:37:59 +0100 (BST)


> it run for about 7 hours. As a result it shows a significant
> amount of allocations at br.c:889 (a number of more than 43000,
> where everything else is under 1000!).

Ok

> I recompiled the kernel without the bridge, and the problem went away!

Yeah. I know that bridge + alias leaks, I've never cared too much

> size = sizeof(Config_bpdu) + dev->hard_header_len;
> skb = alloc_skb(size, GFP_ATOMIC);
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ line 889
> if (skb == NULL) {
> printk(KERN_DEBUG "send_config_bpdu: no skb available\n");
> return(-1);
> }
> skb->dev = dev;
> skb->free = 1;

Well the stuff quoted so far is fine. I'll take a look before pre11
in case its something obvious

Alan

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/