habanalabs/gaudi: use standard error codes
authorOded Gabbay <ogabbay@kernel.org>
Sun, 6 Jun 2021 08:38:12 +0000 (11:38 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Fri, 18 Jun 2021 12:23:41 +0000 (15:23 +0300)
commitf1a29770b2158c2c5a4c92cfd57600a6d6062973
treeae77cfb2c7ae86dad1eb8849edeeac7269945c8b
parent0f37510ca34848718db1003479bb4671e8f3c112
habanalabs/gaudi: use standard error codes

When there is an ECC error in the HBM, return a standard error code,
-EIO in this case, and not a positive value.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/gaudi/gaudi.c