Imported Upstream version 16.11
[deb_dpdk.git] / drivers / net / bnxt / bnxt_filter.c
index f03a1dc..df1042c 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;