mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-08 14:13:53 +00:00
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 @@ int hl_device_reset(struct hl_device *hdev, u32 flags)
|
||||
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
Block a user