aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorTomer Tayar <[email protected]>2022-11-23 15:09:43 +0200
committerOded Gabbay <[email protected]>2023-01-26 10:56:20 +0200
commit6003cb46e661e134e9e1f1449a6ea77d1e4ba6a9 (patch)
tree08f0d797060686dd52392527edf57f2462da4774 /tools/perf/scripts/python/check-perf-trace.py
parent6710444cfeb533f8c7817c7ec1adfb52206a6d00 (diff)
habanalabs: don't allow user to destroy CB handle more than once
The refcount of a CB buffer is initialized when user allocates a CB, and is decreased when he destroys the CB handle. If this refcount is increased also from kernel and user sends more than one destroy requests for the handle, the buffer will be released/freed and later be accessed when the refcount is put from kernel side. To avoid it, prevent user from destroying the handle more than once. 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/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions