Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/tap: fix interrupt handler freeing
[ upstream commit 0809d87 ] rte_pmd_tun/tap_probe() allocates pmd->intr_handle in eth_dev_tap_create() and it should not be freed until rte_pmd_tap_remove() is called. Inspection of tap_rx_intr_vec_set() shows that the call to tap_tx_intr_vec_uninstall() was calling rte_intr_instance_free() but tap_tx_intr_vec_install() can then be immediately called, and this then uses pmd->intr_handle without it being reallocated. Move rte_intr_instance_free() call from tap_tx_intr_vec_uninstall() to rte_pmd_tap_remove(). Fixes: d61138d ("drivers: remove direct access to interrupt handle") Signed-off-by: Quentin Armitage <quentin@armitage.org.uk> Reviewed-by: David Marchand <david.marchand@redhat.com>
- Loading branch information