baseband/acc100: fix close cleanup

Set local pointer to NULL after rte_free.
This needs to be set explicitly since logic may check for null pointers.

Fixes: 060e7672930 ("baseband/acc100: add queue configuration")
Cc: stable@dpdk.org

Signed-off-by: Hernan Vargas <hernan.vargas@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
This commit is contained in:
Hernan Vargas 2022-10-20 22:20:46 -07:00 committed by Akhil Goyal
parent 75114f78cf
commit ba2262fe16

View File

@ -618,6 +618,9 @@ acc100_dev_close(struct rte_bbdev *dev)
rte_free(d->info_ring);
rte_free(d->sw_rings_base);
d->sw_rings_base = NULL;
d->tail_ptrs = NULL;
d->info_ring = NULL;
d->harq_layout = NULL;
}
/* Ensure all in flight HW transactions are completed */
usleep(ACC_LONG_WAIT);