]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
accel/habanalabs/gaudi2: fail memory memset when failing to copy QM packet to device
authorTomer Tayar <ttayar@habana.ai>
Tue, 2 Jan 2024 14:51:09 +0000 (16:51 +0200)
committerOded Gabbay <ogabbay@kernel.org>
Mon, 26 Feb 2024 07:30:40 +0000 (09:30 +0200)
commit01f8cd0fafa69c95aa67fa316a23977eb5a2cb50
tree0e70de9e0ce28371cc895a1aec224108576e12fa
parent731d320e689d7f7a3c316b5628ae78141d43bef7
accel/habanalabs/gaudi2: fail memory memset when failing to copy QM packet to device

gaudi2_memset_memory_chunk_using_edma_qm() calls the access_dev_mem()
ASIC function, but ignores its return value.
Add this missing check.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/accel/habanalabs/gaudi2/gaudi2.c