ns2: Memory allocation failures are ENOMEM, not ENOSPC
ENOSPC is used with non-volatile (disk) storage, while ENOMEM is
customarily used for RAM allocation failures.
Change-Id: Ia4c16d8278dc30c7cc69169b18428cda5272738d
diff --git a/src/gb/gprs_ns2.c b/src/gb/gprs_ns2.c
index 4f3bc5e..2dde693 100644
--- a/src/gb/gprs_ns2.c
+++ b/src/gb/gprs_ns2.c
@@ -1367,12 +1367,12 @@
bind = talloc_zero(nsi, struct gprs_ns2_vc_bind);
if (!bind)
- return -ENOSPC;
+ return -ENOMEM;
bind->name = talloc_strdup(bind, name);
if (!bind->name) {
talloc_free(bind);
- return -ENOSPC;
+ return -ENOMEM;
}
bind->nsi = nsi;