• Milton Miller's avatar
    sched: more robust sd-sysctl entry freeing · cd790076
    Milton Miller authored
    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: default avatarIngo Molnar <mingo@elte.hu>
    cd790076
sched.c 169 KB