diff options
author | Tomer Tayar <ttayar@habana.ai> | 2022-12-05 00:23:47 +0300 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2023-01-26 11:56:22 +0300 |
commit | 7df5319a239a50d3b2ac6d416cbe53a187d86b8d (patch) | |
tree | 8fd9c73a8eff327b55494052f2c328f5c2b99bb0 /drivers/misc | |
parent | dd7a82b52cc16c110269c608533ec1ee47d342fd (diff) | |
download | linux-7df5319a239a50d3b2ac6d416cbe53a187d86b8d.tar.xz |
habanalabs: put fences in case of unexpected wait status
Need to put fences even if an unexpected status value is received while
waiting for a fence.
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/misc')
-rw-r--r-- | drivers/misc/habanalabs/common/command_submission.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/habanalabs/common/command_submission.c b/drivers/misc/habanalabs/common/command_submission.c index 0ec8cdcbb1f5..1543ef993f8e 100644 --- a/drivers/misc/habanalabs/common/command_submission.c +++ b/drivers/misc/habanalabs/common/command_submission.c @@ -2722,7 +2722,8 @@ static int hl_cs_poll_fences(struct multi_cs_data *mcs_data, struct multi_cs_com break; default: dev_err(hdev->dev, "Invalid fence status\n"); - return -EINVAL; + rc = -EINVAL; + break; } } |