]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "powerpc/pseries/hotplug-cpu: Remove double free in error path"
authorZhang Xiaoxu <zhangxiaoxu5@huawei.com>
Wed, 11 Nov 2020 02:07:52 +0000 (21:07 -0500)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 19 Nov 2020 05:56:53 +0000 (16:56 +1100)
commitf8b42fc418eee0a9c85fbec08c1b995c11f033c5
tree04e9a2309cf14b2e2761becdf09db8edd687e0f7
parentbaef549a53d57520950764ca1acb034d17928a68
Revert "powerpc/pseries/hotplug-cpu: Remove double free in error path"

This reverts commit a2b3e76aaba2d05ce3eec85d6ac5c2b1eefc30a7.

Since the commit d9d115bea296 ("powerpc/pseries: Add cpu DLPAR
support for drc-info property"), the 'cpu_drcs' wouldn't be double
freed when the 'cpus' node not found.

So we needn't apply this patch, otherwise, the memory will be leaked.

Fixes: a2b3e76aaba2 ("powerpc/pseries/hotplug-cpu: Remove double free in error path")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhang Xiaoxu <zhangxiaoxu5@huawei.com>
[mpe: Caused by me applying a patch to a function that had changed in the interim]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201111020752.1686139-1-zhangxiaoxu5@huawei.com
arch/powerpc/platforms/pseries/hotplug-cpu.c