From: Simon Wunderlich Date: Sat, 2 Jan 2010 10:30:39 +0000 (+0100) Subject: Staging: batman-adv: initialize static hash iterators X-Git-Tag: v2.6.34-rc1~10^2~1^2~276 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6c359767bc743a7b6830660daa8f7e5c4273ad8;p=pandora-kernel.git Staging: batman-adv: initialize static hash iterators instead of dynamically registering hash iterators, calling functions are changed to register the iterator objects statically. The two advantages are: * no memory leaks when aborting from hash_iterate() * no calls to kmalloc/kfree, therefore a little faster/safer Tested with 9 QEMU instances, no obvious regression found. Signed-off-by: Simon Wunderlich Signed-off-by: Andrew Lunn Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed