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

habanalabs: fix reset process in case of failures



There are some points in the reset process where if the code fails
for some reason, and the system admin tries to initiate the reset
process again we will get a kernel panic.

This is because there aren't any protections in different fini
functions that are called during the reset process.

The protections that are added in this patch make sure that if the fini
functions are called multiple times, without calling init functions
between them, there won't be double release of already released
resources.

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