commit | 0fce5ef1591055ff8db33ba2c34346ef2a33155e | [log] [tgz] |
---|---|---|
author | Gen Zhang <blackgod016574@gmail.com> | Sun May 26 10:42:40 2019 +0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Dec 05 15:35:18 2019 +0100 |
tree | 0d8cb1bb1994390251db3ad776c5b36243c9cc32 | |
parent | fe862a86ce6fffc444fa6987d5bd5dffec76a6b1 [diff] |
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>