pipeline: fix argument check
authorCristian Dumitrescu <cristian.dumitrescu@intel.com>
Tue, 6 Oct 2020 20:37:51 +0000 (21:37 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 8 Oct 2020 13:04:55 +0000 (15:04 +0200)
Coverity issue: 362789
Fixes: 3ca60ceed7 ("pipeline: add SWX pipeline specification file")

Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_pipeline/rte_swx_pipeline_spec.c

index 95de8f9..06e1ab4 100644 (file)
@@ -1064,7 +1064,7 @@ rte_swx_pipeline_build_from_spec(struct rte_swx_pipeline *p,
                goto error;
        }
 
-       if (!p) {
+       if (!spec) {
                if (err_line)
                        *err_line = 0;
                if (err_msg)