examples/ipsec-secgw: fix error sign
authorDilshod Urazov <dilshod.urazov@oktetlabs.ru>
Fri, 5 Jul 2019 12:18:09 +0000 (13:18 +0100)
committerAkhil Goyal <akhil.goyal@nxp.com>
Mon, 8 Jul 2019 10:35:55 +0000 (12:35 +0200)
rte_errno values should be positive.

Fixes: d299106e8e31 ("examples/ipsec-secgw: add IPsec sample application")
Cc: stable@dpdk.org
Signed-off-by: Dilshod Urazov <dilshod.urazov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
Acked-by: Bernard Iremonger <bernard.iremonger@intel.com>
examples/ipsec-secgw/sa.c

index 1083915..d700c8e 100644 (file)
@@ -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;
        }