diff options
author | Dominique Martinet <[email protected]> | 2018-08-14 02:43:48 +0000 |
---|---|---|
committer | Dominique Martinet <[email protected]> | 2018-08-27 14:59:29 +0900 |
commit | 2f9ad0ac947ccbe3ffe7c6229c9330f2a7755f64 (patch) | |
tree | 467a3db6b689c4cfcb49834890a6381ae168b0be /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 5b394b2ddf0347bef56e50c69a58773c94343ff3 (diff) |
9p/xen: fix check for xenbus_read error in front_probe
If the xen bus exists but does not expose the proper interface, it is
possible to get a non-zero length but still some error, leading to
strcmp failing trying to load invalid memory addresses e.g.
fffffffffffffffe.
There is then no need to check length when there is no error, as the
xenbus driver guarantees that the string is nul-terminated.
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Dominique Martinet <[email protected]>
Reviewed-by: Stefano Stabellini <[email protected]>
Cc: Eric Van Hensbergen <[email protected]>
Cc: Latchesar Ionkov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions