From: Milton Miller Date: Wed, 17 Oct 2007 14:55:11 +0000 (+0200) Subject: sched: more robust sd-sysctl entry freeing X-Git-Tag: v2.6.24-rc1~489^2~3 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd79007634854f9e936e2369890f2512f94b8759;p=pandora-kernel.git sched: more robust sd-sysctl entry freeing It occurred to me this morning that the procname field was dynamically allocated and needed to be freed. I started to put in break statements when allocation failed but it was approaching 50% error handling code. I came up with this alternative of looping while entry->mode is set and checking proc_handler instead of ->table. Alternatively, the string version of the domain name and cpu number could be stored the structs. I verified by compiling CONFIG_DEBUG_SLAB and checking the allocation counts after taking a cpuset exclusive and back. Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed