[dpdk-dev] [PATCH 3/3] ethdev: prevent segfaults in rte_eth_dev_is_detachable

2015-11-03 Thread Thomas Monjalon
2015-11-03 12:19, David Marchand: > On Tue, Nov 3, 2015 at 12:10 PM, Thomas Monjalon 6wind.com> > wrote: > > > 2015-10-29 09:55, David Marchand: > > > From: Maxime Leroy > > > > > > Some drivers like virtual ones don't specify any driver pointer in the > > > structure rte_eth_dev. > > > > > > To

[dpdk-dev] [PATCH 3/3] ethdev: prevent segfaults in rte_eth_dev_is_detachable

2015-11-03 Thread David Marchand
On Tue, Nov 3, 2015 at 12:10 PM, Thomas Monjalon wrote: > 2015-10-29 09:55, David Marchand: > > From: Maxime Leroy > > > > Some drivers like virtual ones don't specify any driver pointer in the > > structure rte_eth_dev. > > > > To prevent segfault, we should check if this pointer is NULL before

[dpdk-dev] [PATCH 3/3] ethdev: prevent segfaults in rte_eth_dev_is_detachable

2015-11-03 Thread Thomas Monjalon
2015-10-29 09:55, David Marchand: > From: Maxime Leroy > > Some drivers like virtual ones don't specify any driver pointer in the > structure rte_eth_dev. > > To prevent segfault, we should check if this pointer is NULL before > dereferencing it. > > Signed-off-by: Maxime Leroy > Signed-off-by

[dpdk-dev] [PATCH 3/3] ethdev: prevent segfaults in rte_eth_dev_is_detachable

2015-10-29 Thread David Marchand
From: Maxime Leroy Some drivers like virtual ones don't specify any driver pointer in the structure rte_eth_dev. To prevent segfault, we should check if this pointer is NULL before dereferencing it. Signed-off-by: Maxime Leroy Signed-off-by: David Marchand --- lib/librte_ether/rte_ethdev.c |