"...0d0cea2424ae97b27447dc64a7dbfae83c036c45b403392f0e8ba.png" did not exist on "4f515cc93248face6ba45dd296dc3e7381848ab7"
params: cleanup sysfs allocation
commit 63662139 attempted to patch a leak (which would only happen on OOM, ie. never), but it didn't quite work. This rewrites the code to be as simple as possible. add_sysfs_param() adds a parameter. If it fails, it's the caller's responsibility to clean up the parameters which already exist. The kzalloc-then-always-krealloc pattern is perhaps overly simplistic, but this code has clearly confused people. It worked on me... Signed-off-by:Rusty Russell <rusty@rustcorp.com.au>
Loading
Please register or sign in to comment