summaryrefslogtreecommitdiffstats
path: root/drivers/misc/habanalabs/memory.c
diff options
context:
space:
mode:
authorOded Gabbay2019-03-27 08:44:28 +0100
committerOded Gabbay2019-03-27 08:44:28 +0100
commitcab8e3e20d5cb89c876c30d24d38f1caf1d9bdb8 (patch)
tree70bdc085c10389e68912126eb0f08d63d411b20b /drivers/misc/habanalabs/memory.c
parenthabanalabs: add device status option to INFO IOCTL (diff)
downloadkernel-qcow2-linux-cab8e3e20d5cb89c876c30d24d38f1caf1d9bdb8.tar.gz
kernel-qcow2-linux-cab8e3e20d5cb89c876c30d24d38f1caf1d9bdb8.tar.xz
kernel-qcow2-linux-cab8e3e20d5cb89c876c30d24d38f1caf1d9bdb8.zip
habanalabs: improve error messages
This patch improves two error messages to help the user to better understand what error occurred. Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'drivers/misc/habanalabs/memory.c')
-rw-r--r--drivers/misc/habanalabs/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/habanalabs/memory.c b/drivers/misc/habanalabs/memory.c
index ce1fda40a8b8..39788b1cf8d0 100644
--- a/drivers/misc/habanalabs/memory.c
+++ b/drivers/misc/habanalabs/memory.c
@@ -109,7 +109,7 @@ static int alloc_device_memory(struct hl_ctx *ctx, struct hl_mem_in *args,
page_size);
if (!phys_pg_pack->pages[i]) {
dev_err(hdev->dev,
- "ioctl failed to allocate page\n");
+ "Failed to allocate device memory (out of memory)\n");
rc = -ENOMEM;
goto page_err;
}