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>
This commit is contained in:
parent
eba773d30d
commit
0c93eb098f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue