From: John Daley Date: Thu, 29 Sep 2016 20:56:37 +0000 (-0700) Subject: net/enic: fix crash with removed flow director filters X-Git-Tag: spdx-start~5557 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=e9e29d3ee2a4e9a63d723ab476310c985492739e;p=dpdk.git net/enic: fix crash with removed flow director filters When flow director filters where removed when an enic device is stopped, the filters were freed but the pointer was not set to NULL so the next stop would try to free them again. Fixes: fefed3d1e62c ("enic: new driver") Signed-off-by: John Daley --- diff --git a/drivers/net/enic/enic_clsf.c b/drivers/net/enic/enic_clsf.c index b251b7f222..111b1942a0 100644 --- a/drivers/net/enic/enic_clsf.c +++ b/drivers/net/enic/enic_clsf.c @@ -240,6 +240,7 @@ void enic_clsf_destroy(struct enic *enic) vnic_dev_classifier(enic->vdev, CLSF_DEL, &key->fltr_id, NULL); rte_free(key); + enic->fdir.nodes[index] = NULL; } }