Skip to content
Commit 5b90e59d authored by Oded Gabbay's avatar Oded Gabbay
Browse files

habanalabs: remove compute context pointer



It was an error to save the compute context's pointer in the device
structure, as it allowed its use without proper ref-cnt.

Change the variable to a flag that only indicates whether there is
an active compute context. Code that needs the pointer will now
be forced to use proper internal APIs to get the pointer.

Signed-off-by: default avatarOded Gabbay <ogabbay@kernel.org>
parent 4337b50b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment