]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/mlx5/mlx5_flow_tcf.c
net/mlx5: fix buffer allocation check in rule cleanup
[dpdk.git] / drivers / net / mlx5 / mlx5_flow_tcf.c
index fb817b23119ac00f690acc0d150c2d21683eccb3..ba0674a87c98d3a6c36fe29ca5abcaa40e9f47b4 100644 (file)
@@ -4226,7 +4226,7 @@ flow_tcf_collect_vxlan_cb(const struct nlmsghdr *nlh, void *arg)
        vxindex = ifm->ifi_index;
        cmd = flow_tcf_alloc_nlcmd(ctx, MNL_ALIGN(sizeof(struct nlmsghdr)) +
                                        MNL_ALIGN(sizeof(struct ifinfomsg)));
-       if (!nlh) {
+       if (!cmd) {
                rte_errno = ENOMEM;
                return -rte_errno;
        }