aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/lib
diff options
context:
space:
mode:
authorGravatar Nathan Lynch <nathanl@linux.ibm.com> 2019-09-19 18:16:33 -0500
committerGravatar Michael Ellerman <mpe@ellerman.id.au> 2020-07-30 22:53:49 +1000
commita0ff72f9f5a780341e7ff5e9ba50a0dad5fa1980 (patch)
treeb5adb262650b6d0866fe75ab730f9b4061ffdfa6 /arch/powerpc/lib
parentpowerpc/pseries/mobility: Add pr_debug() for device tree changes (diff)
downloadlinux-a0ff72f9f5a780341e7ff5e9ba50a0dad5fa1980.tar.gz
linux-a0ff72f9f5a780341e7ff5e9ba50a0dad5fa1980.tar.bz2
linux-a0ff72f9f5a780341e7ff5e9ba50a0dad5fa1980.zip
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 <nathanl@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20190919231633.1344-1-nathanl@linux.ibm.com
Diffstat (limited to 'arch/powerpc/lib')
0 files changed, 0 insertions, 0 deletions