]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_lpm/rte_lpm.c
kvargs: use SPDX tags
[dpdk.git] / lib / librte_lpm / rte_lpm.c
index d464dbda90223cdba41fed41b47bddb3e228fcaf..d00b13d9310563acc69797ab06a8cc77e6ec43f9 100644 (file)
@@ -180,6 +180,7 @@ rte_lpm_create_v20(const char *name, int socket_id, int max_rules,
        }
 
        if (te != NULL) {
+               lpm = NULL;
                rte_errno = EEXIST;
                goto exit;
        }
@@ -256,6 +257,7 @@ rte_lpm_create_v1604(const char *name, int socket_id,
        }
 
        if (te != NULL) {
+               lpm = NULL;
                rte_errno = EEXIST;
                goto exit;
        }