aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorMilton Miller <[email protected]>2007-10-17 14:55:11 +0000
committerIngo Molnar <[email protected]>2007-10-17 14:55:11 +0000
commitcd79007634854f9e936e2369890f2512f94b8759 (patch)
tree904e9d4f406bf5d48699027f415e6acd12cc9121 /fs/proc/array.c
parentMerge branch 'upstream-linus' of master.kernel.org:/pub/scm/linux/kernel/git/... (diff)
downloadkernel-cd79007634854f9e936e2369890f2512f94b8759.tar.gz
kernel-cd79007634854f9e936e2369890f2512f94b8759.zip
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 <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions