diff options
author | Tomer Tayar <ttayar@habana.ai> | 2023-01-17 14:50:41 +0100 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2023-01-26 10:52:13 +0100 |
commit | 0c93eb098f21074555b9b08ab60d1c3e3129f3da (patch) | |
tree | 7ed786efae6e9119c7e687bce7e97ba7dd03fc07 /drivers/accel/habanalabs/common | |
parent | habanalabs: enhance info printed on FW load errors (diff) | |
download | linux-0c93eb098f21074555b9b08ab60d1c3e3129f3da.tar.xz linux-0c93eb098f21074555b9b08ab60d1c3e3129f3da.zip |
habanalabs: run error handling if scrub_device_mem fails after reset
If device memory scrubbing from hl_device_reset() fails, we return with
an error code but not perform error handling code.
Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/accel/habanalabs/common')
-rw-r--r-- | drivers/accel/habanalabs/common/device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/accel/habanalabs/common/device.c b/drivers/accel/habanalabs/common/device.c index 9a9c494b08a4..edeec35fd9c6 100644 --- a/drivers/accel/habanalabs/common/device.c +++ b/drivers/accel/habanalabs/common/device.c @@ -1738,7 +1738,7 @@ kill_processes: rc = hdev->asic_funcs->scrub_device_mem(hdev); if (rc) { dev_err(hdev->dev, "scrub mem failed from device reset (%d)\n", rc); - return rc; + goto out_err; } spin_lock(&hdev->reset_info.lock); |