mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 04:34:03 +02:00
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>
This commit is contained in:
parent
408c46bd6e
commit
1f615120fc
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user