diff options
| author | Tomer Tayar <ttayar@habana.ai> | 2022-07-27 09:04:13 +0300 |
|---|---|---|
| committer | Oded Gabbay <ogabbay@kernel.org> | 2022-09-18 13:29:50 +0300 |
| commit | 7fa6c0fe8b2154f84162b8aacbe581df722a6f0c (patch) | |
| tree | 85da267f28d491f2f8b070c6edbfa6365818beac /tools/perf/scripts/python | |
| parent | habanalabs: fix command submission sanity check (diff) | |
| download | linux-7fa6c0fe8b2154f84162b8aacbe581df722a6f0c.tar.gz linux-7fa6c0fe8b2154f84162b8aacbe581df722a6f0c.zip | |
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 <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
