numam-dpdk/lib/librte_ether
Matan Azrad f0e1180cb6 ethdev: fix port accessing after release
rte_eth_dev_pci_release() function wrongly releases an ethdev port and
then releases internal fields of this port.
This behavior is problematic, because after the release, the port may
be reallocated again by another thread or just be invalid for any
usage.

Move the release operation to the end of the function.

Fixes: dcd5c8112b ("ethdev: add PCI driver helpers")
Cc: stable@dpdk.org

Suggested-by: Ferruh Yigit <ferruh.yigit@intel.com>
Signed-off-by: Matan Azrad <matan@mellanox.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
2018-03-30 14:08:44 +02:00
..
ethdev_profile.c lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
ethdev_profile.h lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
Makefile ethdev: remove versioning of filter control function 2018-03-30 14:08:43 +02:00
meson.build build: set compat lib as universal dependency 2018-01-30 21:59:00 +01:00
rte_dev_info.h lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte_eth_ctrl.h ethdev: increase flow type limit from 32 to 64 2018-01-21 15:51:52 +01:00
rte_ethdev_core.h ethdev: fix data alignment 2018-02-13 16:32:16 +01:00
rte_ethdev_driver.h ethdev: add link status get/set helper functions 2018-03-30 14:08:43 +02:00
rte_ethdev_pci.h ethdev: fix port accessing after release 2018-03-30 14:08:44 +02:00
rte_ethdev_vdev.h ethdev: separate driver APIs 2018-01-22 01:26:49 +01:00
rte_ethdev_version.map ethdev: remove versioning of filter control function 2018-03-30 14:08:43 +02:00
rte_ethdev.c ethdev: fix queue start 2018-03-30 14:08:44 +02:00
rte_ethdev.h ethdev: return named opaque type instead of void pointer 2018-03-30 14:08:44 +02:00
rte_flow_driver.h ethdev: use SPDX tags in 6WIND copyrighted files 2018-02-01 02:32:52 +01:00
rte_flow.c ethdev: use SPDX tags in 6WIND copyrighted files 2018-02-01 02:32:52 +01:00
rte_flow.h ethdev: use SPDX tags in 6WIND copyrighted files 2018-02-01 02:32:52 +01:00
rte_mtr_driver.h lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte_mtr.c add experimental tag to appropriate functions 2018-01-29 23:35:29 +01:00
rte_mtr.h add experimental tag to appropriate functions 2018-01-29 23:35:29 +01:00
rte_tm_driver.h lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte_tm.c lib: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte_tm.h ethdev: increase port id range 2017-10-06 18:23:25 +02:00