Re: [PATCH] powerpc/pseries/hotplug-cpu: remove double free in error path

2020-08-02 Thread Michael Ellerman
On Thu, 19 Sep 2019 18:16:33 -0500, Nathan Lynch wrote: > 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

[PATCH] powerpc/pseries/hotplug-cpu: remove double free in error path

2019-09-19 Thread Nathan Lynch
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