[dpdk-dev] [PATCH] ethdev: Fix illegal access of rte_eth_dev_is_detachable()

Thomas Monjalon thomas.monjalon at 6wind.com
Sun Aug 9 19:52:26 CEST 2015


> > To obtain detachable flag, pci_drv is accessed in
> > rte_eth_dev_is_detachable().
> > But pci_drv is only valid if port is enabled. Not to cause illegal access, add
> > rte_eth_dev_is_valid_port() before accessing.
> > 
> > Signed-off-by: Tetsuya Mukawa <mukawa at igel.co.jp>
> 
> Acked-by: Bernard Iremonger <Bernard.iremonger at intel.com>

Applied, thanks


More information about the dev mailing list