linux-stable/arch/powerpc
Gen Zhang 0583dc6fce powerpc/pseries/dlpar: Fix a missing check in dlpar_parse_cc_property()
[ Upstream commit efa9ace68e ]

In dlpar_parse_cc_property(), 'prop->name' is allocated by kstrdup().
kstrdup() may return NULL, so it should be checked and handle error.
And prop should be freed if 'prop->name' is NULL.

Signed-off-by: Gen Zhang <blackgod016574@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-12-05 15:38:04 +01:00
..
boot powerpc/44x/bamboo: Fix PCI range 2019-12-05 15:37:42 +01:00
configs powerpc/configs: Update for CONFIG_SND changes 2017-09-20 13:30:09 +10:00
crypto crypto: hash - annotate algorithms taking optional key 2018-02-16 20:23:00 +01:00
include powerpc/83xx: handle machine check caused by watchdog timer 2019-12-05 15:37:47 +01:00
kernel powerpc/83xx: handle machine check caused by watchdog timer 2019-12-05 15:37:47 +01:00
kvm KVM: PPC: Book3S HV: Flush link stack on guest exit to host kernel 2019-12-01 09:14:36 +01:00
lib powerpc/fsl: Add infrastructure to fixup branch predictor flush 2019-04-03 06:25:13 +02:00
math-emu License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mm powerpc/mm: Make NULL pointer deferences explicit on bad page faults. 2019-12-05 15:37:42 +01:00
net bpf: get rid of pure_initcall dependency to enable jits 2019-08-25 10:50:02 +02:00
oprofile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
perf powerpc/perf: Fix unit_sel/cache_sel checks 2019-12-05 15:37:41 +01:00
platforms powerpc/pseries/dlpar: Fix a missing check in dlpar_parse_cc_property() 2019-12-05 15:38:04 +01:00
purgatory License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
sysdev powerpc/xive: Move a dereference below a NULL test 2019-11-24 08:23:01 +01:00
tools License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
xmon powerpc/xmon: fix dump_segments() 2019-12-05 15:37:36 +01:00
Kconfig powerpc/fsl: Add barrier_nospec implementation for NXP PowerPC Book3E 2019-04-03 06:25:13 +02:00
Kconfig.debug License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Makefile powerpc: remove old GCC version checks 2019-05-16 19:42:29 +02:00
Makefile.postlink License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00