diff options
author | Tomer Tayar <ttayar@habana.ai> | 2022-11-16 14:14:02 +0300 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2022-11-23 17:46:29 +0300 |
commit | 1f615120fc9d24a8df7f14b0d1e79f3402330855 (patch) | |
tree | 0d2672e8447241f7b0b125e58e78caa5381e0060 /drivers/misc/habanalabs/common/context.c | |
parent | 408c46bd6eb7a4e2fb9fd686218e4a13b9de844c (diff) | |
download | linux-1f615120fc9d24a8df7f14b0d1e79f3402330855.tar.xz |
habanalabs: don't put context in hl_encaps_handle_do_release_sob()
hl_encaps_handle_do_release_sob() can be called only when the last
reference to the context object is released and hl_ctx_do_release() is
initiated, and therefore it shouldn't call hl_ctx_put().
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 'drivers/misc/habanalabs/common/context.c')
-rw-r--r-- | drivers/misc/habanalabs/common/context.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/misc/habanalabs/common/context.c b/drivers/misc/habanalabs/common/context.c index 2f4620b7990c..ba6675960203 100644 --- a/drivers/misc/habanalabs/common/context.c +++ b/drivers/misc/habanalabs/common/context.c @@ -39,7 +39,6 @@ static void hl_encaps_handle_do_release_sob(struct kref *ref) idr_remove(&mgr->handles, handle->id); spin_unlock(&mgr->lock); - hl_ctx_put(handle->ctx); kfree(handle); } |