diff options
author | Harald Welte <laforge@osmocom.org> | 2021-01-31 11:44:57 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2021-02-01 09:39:29 +0100 |
commit | bdfb8b9104fde2a053f86953ecbbdb1b2f265b9d (patch) | |
tree | 0fb01a9fabc8627961d9c2b1b5e367f5b586bdcf /src/gb/gprs_ns2_udp.c | |
parent | c3aa8f903a58db8af5c2687a3c040fe9f49474fb (diff) |
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
Diffstat (limited to 'src/gb/gprs_ns2_udp.c')
-rw-r--r-- | src/gb/gprs_ns2_udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gb/gprs_ns2_udp.c b/src/gb/gprs_ns2_udp.c index b4bcd018..9277f9aa 100644 --- a/src/gb/gprs_ns2_udp.c +++ b/src/gb/gprs_ns2_udp.c @@ -341,7 +341,7 @@ int gprs_ns2_ip_bind(struct gprs_ns2_inst *nsi, priv = bind->priv = talloc_zero(bind, struct priv_bind); if (!priv) { gprs_ns2_free_bind(bind); - return -ENOSPC; + return -ENOMEM; } priv->fd.cb = nsip_fd_cb; priv->fd.data = bind; |