aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorTomer Tayar <[email protected]>2022-07-27 09:04:13 +0300
committerOded Gabbay <[email protected]>2022-09-18 13:29:50 +0300
commit7fa6c0fe8b2154f84162b8aacbe581df722a6f0c (patch)
tree85da267f28d491f2f8b070c6edbfa6365818beac /tools/perf/scripts/python/libxed.py
parent0c876b47a54a5ae1331a99da9cc115f8f5c90990 (diff)
habanalabs: avoid returning a valid handle if map_block() fails
map_block() sets the block id handle even if get_hw_block_id() fails, and in this case it uses block id 0 which might be a valid id. Modify it to set the handle only if get_hw_block_id() succeeds. Signed-off-by: Tomer Tayar <[email protected]> Reviewed-by: Oded Gabbay <[email protected]> Signed-off-by: Oded Gabbay <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions