diff options
author | Nathan Lynch <[email protected]> | 2019-09-19 18:16:33 -0500 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2020-07-30 22:53:49 +1000 |
commit | a0ff72f9f5a780341e7ff5e9ba50a0dad5fa1980 (patch) | |
tree | b5adb262650b6d0866fe75ab730f9b4061ffdfa6 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 5d8b1f9dea17b4bf5e5f088f39eeab32c7e487be (diff) |
powerpc/pseries/hotplug-cpu: Remove double free in error path
In the unlikely event that the device tree lacks a /cpus node,
find_dlpar_cpus_to_add() oddly frees the cpu_drcs buffer it has been
passed before returning an error. Its only caller also frees the
buffer on error.
Remove the less conventional kfree() of a caller-supplied buffer from
find_dlpar_cpus_to_add().
Fixes: 90edf184b9b7 ("powerpc/pseries: Add CPU dlpar add functionality")
Signed-off-by: Nathan Lynch <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions