Memory leak with dev_add_pack()

Daniel Baluta daniel.baluta at gmail.com
Sun Jan 23 08:03:18 EST 2011


Hi Spiro,

> While it essentially works as I want it to, I found that I am leaking
> memory this way. Having this module in a highly loaded network,
> "head -n5 /proc/meminfo" shows that MemFree is steadily falling, until
> the kernel OOPS with an out of memory condition.

Have you considered using kmemleak [1] to help your debugging?

thanks,
Daniel.

[1] http://lxr.linux.no/linux+v2.6.37/Documentation/kmemleak.txt



More information about the Kernelnewbies mailing list