diff options
author | Pan Bian <[email protected]> | 2016-12-05 16:22:22 +0800 |
---|---|---|
committer | Juergen Gross <[email protected]> | 2016-12-08 07:53:57 +0100 |
commit | 2466d4b9d0c21e6c28cd63516dea65806bf5a307 (patch) | |
tree | 662e90240df2d3654ed2bb66b63b9be966571b56 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | 0fdb47440203ce06e09923c4d578cf3c20aef69a (diff) |
xen: xenbus: set error code on failure
Variable err is initialized with 0. As a result, the return value may
be 0 even if get_zeroed_page() fails to allocate memory. This patch fixes
the bug, initializing err with "-ENOMEM".
Signed-off-by: Pan Bian <[email protected]>
Reviewed-by: Juergen Gross <[email protected]>
Signed-off-by: Juergen Gross <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions