summaryrefslogtreecommitdiff
path: root/rust/helpers/pid_namespace.c
diff options
context:
space:
mode:
authorTomer Tayar <tomer.tayar@intel.com>2024-05-26 16:32:32 +0300
committerKoby Elbaz <koby.elbaz@intel.com>2025-09-25 09:09:22 +0300
commit9f5067531c9b79318c4e48a933cb2694f53f3de2 (patch)
tree5456b2abd7f4cf1e85756ae048974c20ab73f908 /rust/helpers/pid_namespace.c
parent342f141ba9f4c9e39de342d047a5245e8f4cda19 (diff)
accel/habanalabs: return ENOMEM if less than requested pages were pinned
EFAULT is currently returned if less than requested user pages are pinned. This value means a "bad address" which might be confusing to the user, as the address of the given user memory is not necessarily "bad". Modify the return value to ENOMEM, as "out of memory" is more suitable in this case. Signed-off-by: Tomer Tayar <tomer.tayar@intel.com> Reviewed-by: Koby Elbaz <koby.elbaz@intel.com> Signed-off-by: Koby Elbaz <koby.elbaz@intel.com>
Diffstat (limited to 'rust/helpers/pid_namespace.c')
0 files changed, 0 insertions, 0 deletions