From: Dilshod Urazov Date: Fri, 5 Jul 2019 12:18:09 +0000 (+0100) Subject: examples/ipsec-secgw: fix error sign X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=4fbf33243175311781e8f130b53890859304dc29;p=dpdk.git examples/ipsec-secgw: fix error sign rte_errno values should be positive. Fixes: d299106e8e31 ("examples/ipsec-secgw: add IPsec sample application") Cc: stable@dpdk.org Signed-off-by: Dilshod Urazov Signed-off-by: Andrew Rybchenko Acked-by: Bernard Iremonger --- diff --git a/examples/ipsec-secgw/sa.c b/examples/ipsec-secgw/sa.c index 1083915f9a..d700c8ea4c 100644 --- a/examples/ipsec-secgw/sa.c +++ b/examples/ipsec-secgw/sa.c @@ -743,7 +743,7 @@ sa_create(const char *name, int32_t socket_id) RTE_MEMZONE_1GB | RTE_MEMZONE_SIZE_HINT_ONLY); if (mz == NULL) { printf("Failed to allocate SA DB memory\n"); - rte_errno = -ENOMEM; + rte_errno = ENOMEM; return NULL; }