Re: [dpdk-dev] [PATCH] ethdev: add a check on mempool during rxq setup

2019-06-06 Thread Ferruh Yigit
On 6/5/2019 5:46 PM, Andrew Rybchenko wrote: > On 5/17/19 11:15 AM, David Marchand wrote: >> We currently have no check on the mempool pointer passed to >> rte_eth_rx_queue_setup. >> Let's avoid a plain crash when dereferencing it. >> >> Suggested-by: Jens Freimann >> Signed-off-by: David Marchand

Re: [dpdk-dev] [PATCH] ethdev: add a check on mempool during rxq setup

2019-06-05 Thread Andrew Rybchenko
On 5/17/19 11:15 AM, David Marchand wrote: We currently have no check on the mempool pointer passed to rte_eth_rx_queue_setup. Let's avoid a plain crash when dereferencing it. Suggested-by: Jens Freimann Signed-off-by: David Marchand Acked-by: Andrew Rybchenko

Re: [dpdk-dev] [PATCH] ethdev: add a check on mempool during rxq setup

2019-05-17 Thread Jens Freimann
On Fri, May 17, 2019 at 10:15:08AM +0200, David Marchand wrote: We currently have no check on the mempool pointer passed to rte_eth_rx_queue_setup. Let's avoid a plain crash when dereferencing it. Suggested-by: Jens Freimann Signed-off-by: David Marchand --- lib/librte_ethdev/rte_ethdev.c | 5

[dpdk-dev] [PATCH] ethdev: add a check on mempool during rxq setup

2019-05-17 Thread David Marchand
We currently have no check on the mempool pointer passed to rte_eth_rx_queue_setup. Let's avoid a plain crash when dereferencing it. Suggested-by: Jens Freimann Signed-off-by: David Marchand --- lib/librte_ethdev/rte_ethdev.c | 5 + lib/librte_ethdev/rte_ethdev.h | 6 +++--- 2 files changed