John Crispin
8f0e96ee11
mips: Free memory when load_module fails ( #14453 )
...
The mips reloc patch introduced new allocations which were done before
add_unformed_module but never freed them in case of an error. A new hook in
Linux 3.19 called module_arch_freeing_init can be used for freeing memory
which were allocated during this init phase.
The problem can be seen when trying to load a module (via busybox insmod)
when it was already loaded.
free -m
for i in `seq 1 100`; do
/sbin/insmod /lib/modules/*/ath9k.ko >& /dev/null
done
free -m
This simple loop would leak ~3.2 MB.
Signed-off-by: Sven Eckelmann <sven@open-mesh.com>
SVN-Revision: 46247
2015-07-07 13:48:27 +00:00
..
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-07-07 13:47:08 +00:00
2015-07-03 11:48:45 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-07-03 11:48:45 +00:00
2015-07-03 11:48:45 +00:00
2015-07-03 11:48:45 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-07-05 21:31:54 +00:00
2015-07-07 13:48:27 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-07-07 13:44:27 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-07-05 21:32:49 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00
2015-06-22 12:27:59 +00:00