Thread (2 messages) read the whole thread 2 messages, 2 authors, 2020-08-02

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

From: Michael Ellerman <hidden>
Date: 2020-08-02 14:07:58

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 conventional kfree() of a caller-supplied buffer from
find_dlpar_cpus_to_add().
Applied to powerpc/next.

[1/1] powerpc/pseries/hotplug-cpu: Remove double free in error path
      https://git.kernel.org/powerpc/c/a0ff72f9f5a780341e7ff5e9ba50a0dad5fa1980

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help