summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorGen Zhang <blackgod016574@gmail.com>2019-05-26 10:42:40 +0800
committerMichael Ellerman <mpe@ellerman.id.au>2019-06-02 19:39:35 +1000
commitefa9ace68e487ddd29c2b4d6dd23242158f1f607 (patch)
tree31afde8eae3bf4cff191adcb16e2e960bf7ba775 /tools/perf/scripts/python
parent3e3ebed3fef4878e6f1680ff98088db1a9688831 (diff)
downloadlinux-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