aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorGen Zhang <[email protected]>2019-05-26 10:42:40 +0800
committerMichael Ellerman <[email protected]>2019-06-02 19:39:35 +1000
commitefa9ace68e487ddd29c2b4d6dd23242158f1f607 (patch)
tree31afde8eae3bf4cff191adcb16e2e960bf7ba775 /tools/perf/scripts/python
parent3e3ebed3fef4878e6f1680ff98088db1a9688831 (diff)
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 <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions