diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2015-10-01 12:46:09 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-10-05 13:11:27 +0300 |
commit | a46d9884096c15ec17505b9b3d19f5e0672deff3 (patch) | |
tree | 830a62cc1791d48c974fc47d9c60345316dcf2c1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | a030e1e4bbd085bbcfd0a23f8d355fcd41f39bed (diff) | |
download | linux-a46d9884096c15ec17505b9b3d19f5e0672deff3.tar.xz |
powerpc/pseries: handle nodes without '/'
In case we have node without '/' strrchr() returns NULL which might lead to
crash. Replace strrchr() by kbasename() and modify condition to avoid such
behaviour.
Suggested-by: Segher Boessenkool <segher@kernel.crashing.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions