diff options
| author | Mauricio Faria de Oliveira <[email protected]> | 2018-07-25 22:46:29 -0300 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2018-07-27 09:17:41 -0600 |
| commit | d43fdae7bac2def8c4314b5a49822cb7f08a45f1 (patch) | |
| tree | 29ab95408a8e228d096dbe5d22740639ffd54d4e /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 14cb2c8a6c5dae57ee3e2da10fa3db2b9087e39e (diff) | |
partitions/aix: append null character to print data from disk
Even if properly initialized, the lvname array (i.e., strings)
is read from disk, and might contain corrupt data (e.g., lack
the null terminating character for strings).
So, make sure the partition name string used in pr_warn() has
the null terminating character.
Fixes: 6ceea22bbbc8 ("partitions: add aix lvm partition support files")
Suggested-by: Daniel J. Axtens <[email protected]>
Signed-off-by: Mauricio Faria de Oliveira <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions