]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: rephrase device out-of-memory message
authorOhad Sharabi <osharabi@habana.ai>
Tue, 22 Mar 2022 07:21:29 +0000 (09:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 22 May 2022 18:57:36 +0000 (20:57 +0200)
commita45fd7e9c89265b17beac60cbbdc65e26088ad24
tree14980fa7f76f2fc7d32d2430128775740df237a8
parente362f77df3d411f355a283c12eab1da7d2e71426
habanalabs: rephrase device out-of-memory message

The out of memory message is rephrased to more subtle expression as out
of memory may be caused by the user in case of, for example, greedy
allocation.

In addition the user is also being notified by an error code.

Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/habanalabs/common/memory.c