numam-dpdk/drivers/net/tap
Quentin Armitage 0809d870fc net/tap: fix interrupt handler freeing
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: d61138d4f0 ("drivers: remove direct access to interrupt handle")
Cc: stable@dpdk.org

Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
Reviewed-by: David Marchand <david.marchand@redhat.com>
2022-05-12 10:11:16 +02:00
..
meson.build doc: remove references to the old build system 2021-09-23 08:45:10 +02:00
rte_eth_tap.c net/tap: fix interrupt handler freeing 2022-05-12 10:11:16 +02:00
rte_eth_tap.h drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
tap_bpf_api.c fix spelling in comments and strings 2022-01-11 12:16:53 +01:00
tap_bpf_insns.h add missing static keyword to globals 2018-10-29 02:01:08 +01:00
tap_bpf_program.c replace packed attributes 2020-04-16 18:16:46 +02:00
tap_bpf.h replace alignment attributes 2020-04-16 18:16:18 +02:00
tap_flow.c remove unnecessary null checks 2022-02-12 12:07:48 +01:00
tap_flow.h ethdev: replace callback getting filter operations 2021-03-26 18:37:13 +01:00
tap_intr.c net/tap: fix interrupt handler freeing 2022-05-12 10:11:16 +02:00
tap_log.h net/tap: convert to dynamic logging 2018-04-27 18:00:59 +01:00
tap_netlink.c net/tap: fix build for glibc < 2.24 2020-05-11 22:27:39 +02:00
tap_netlink.h align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
tap_rss.h ethdev: add namespace 2021-10-22 18:15:38 +02:00
tap_tcmsgs.c net/tap: fix possible uninitialized variable access 2018-12-21 16:22:41 +01:00
tap_tcmsgs.h align SPDX Mellanox copyrights 2018-04-11 01:47:47 +02:00
version.map version: 21.11-rc0 2021-08-17 08:37:52 +02:00