From: Tomer Tayar Date: Sun, 4 Dec 2022 21:23:47 +0000 (+0200) Subject: habanalabs: put fences in case of unexpected wait status X-Git-Tag: v6.3-rc1~135^2~18^2~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7df5319a239a50d3b2ac6d416cbe53a187d86b8d;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Oded Gabbay Signed-off-by: Oded Gabbay --- diff --git a/drivers/misc/habanalabs/common/command_submission.c b/drivers/misc/habanalabs/common/command_submission.c index 0ec8cdcbb1f56..1543ef993f8eb 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; } }