public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Possible memory leak in cpu/ppc4xx/4xx_enet.c
@ 2008-03-15  2:44 Dave Littell
  2008-03-15  6:07 ` Stefan Roese
  0 siblings, 1 reply; 5+ messages in thread
From: Dave Littell @ 2008-03-15  2:44 UTC (permalink / raw)
  To: u-boot

Hi all,

I've seen an issue with my 1.3.1-based port of U-Boot where a relatively
large number of pings issued from the command line will ultimately fail
with the message:

Cannot allocate private hw data for eth_device...

I looked around this message and it seems that ppc_4xx_eth_initialize()
malloc()?s a EMAC_4XX_HW_PST structure and assigns it to dev->priv.
However, nothing ever frees this buffer so standing on a ping will
ultimately pull down all the available memory.

One fix might be to free( dev->priv ) at the end of ppc_4xx_eth_halt().
 I tried this today and noted no ill effects.


Thanks,
Dave

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-03-17 23:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-15  2:44 [U-Boot-Users] Possible memory leak in cpu/ppc4xx/4xx_enet.c Dave Littell
2008-03-15  6:07 ` Stefan Roese
2008-03-15 15:12   ` Dave Littell
2008-03-17  8:56     ` Stefan Roese
2008-03-17 23:10       ` Dave Littell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox