]> git.droids-corp.org - dpdk.git/blobdiff - drivers/net/bnxt/bnxt_filter.c
net/mlx5: fix Rx packet validation and type
[dpdk.git] / drivers / net / bnxt / bnxt_filter.c
index f03a1dc8b2194133a2e0ee4e8aeacf3af02cf83f..df1042cfde86846ffef56d3366b36eda25a6d793 100644 (file)
@@ -118,6 +118,9 @@ void bnxt_free_filter_mem(struct bnxt *bp)
        uint16_t max_filters, i;
        int rc = 0;
 
+       if (bp->filter_info == NULL)
+               return;
+
        /* Ensure that all filters are freed */
        if (BNXT_PF(bp)) {
                struct bnxt_pf_info *pf = &bp->pf;