[dpdk-dev] [PATCH] ethdev: fix port accessing after release

Ferruh Yigit ferruh.yigit at intel.com
Fri Mar 30 12:40:22 CEST 2018


On 3/28/2018 1:25 PM, Thomas Monjalon wrote:
> 28/03/2018 14:10, Matan Azrad:
>> 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: dcd5c8112bc3 ("ethdev: add PCI driver helpers")
>> Cc: stable at dpdk.org
>>
>> Suggested-by: Ferruh Yigit <ferruh.yigit at intel.com>
>> Signed-off-by: Matan Azrad <matan at mellanox.com>
> 
> Acked-by: Thomas Monjalon <thomas at monjalon.net>

Applied to dpdk-next-net/master, thanks.


More information about the dev mailing list