diff options
| author | Gen Zhang <blackgod016574@gmail.com> | 2019-05-26 10:42:40 +0800 |
|---|---|---|
| committer | Michael Ellerman <mpe@ellerman.id.au> | 2019-06-02 19:39:35 +1000 |
| commit | efa9ace68e487ddd29c2b4d6dd23242158f1f607 (patch) | |
| tree | 31afde8eae3bf4cff191adcb16e2e960bf7ba775 /tools/perf/scripts/python | |
| parent | 3e3ebed3fef4878e6f1680ff98088db1a9688831 (diff) | |
| download | linux-efa9ace68e487ddd29c2b4d6dd23242158f1f607.tar.gz linux-efa9ace68e487ddd29c2b4d6dd23242158f1f607.zip | |
powerpc/pseries/dlpar: Fix a missing check in dlpar_parse_cc_property()
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>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
