Skip to content

Commit 1f61512

Browse files
Tomer Tayarogabbay
authored andcommitted
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 <[email protected]> Reviewed-by: Oded Gabbay <[email protected]> Signed-off-by: Oded Gabbay <[email protected]>
1 parent 408c46b commit 1f61512

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/misc/habanalabs/common/context.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ static void hl_encaps_handle_do_release_sob(struct kref *ref)
3939
idr_remove(&mgr->handles, handle->id);
4040
spin_unlock(&mgr->lock);
4141

42-
hl_ctx_put(handle->ctx);
4342
kfree(handle);
4443
}
4544

0 commit comments

Comments
 (0)