diff --git a/drivers/misc/habanalabs/device.c b/drivers/misc/habanalabs/device.c index 2f5a4da707e7..80205d8584ce 100644 --- a/drivers/misc/habanalabs/device.c +++ b/drivers/misc/habanalabs/device.c @@ -891,7 +891,7 @@ int hl_device_reset(struct hl_device *hdev, bool hard_reset, * can't really exit until all its CSs are done, which is what we * do in cs rollback */ - if (from_hard_reset_thread) + if (hard_reset) device_kill_open_processes(hdev); /* Release kernel context */