diff options
author | Gen Zhang <blackgod016574@gmail.com> | 2019-05-26 05:42:40 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-05 17:38:04 +0300 |
commit | 0583dc6fceb6b70cbd7e39802da41d8269fe82ac (patch) | |
tree | 1ddae7a80c5a9dba7f377d4b9b8468205d3faa84 /.get_maintainer.ignore | |
parent | 0e7b61dce67264cd55bfd488f96a1d2f103c5989 (diff) | |
download | linux-0583dc6fceb6b70cbd7e39802da41d8269fe82ac.tar.xz |
powerpc/pseries/dlpar: Fix a missing check in dlpar_parse_cc_property()
[ Upstream commit efa9ace68e487ddd29c2b4d6dd23242158f1f607 ]
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>
Diffstat (limited to '.get_maintainer.ignore')
0 files changed, 0 insertions, 0 deletions