[dpdk-dev] [PATCH] ethdev: add a check on mempool during rxq setup
Jens Freimann
jfreimann at redhat.com
Fri May 17 13:11:07 CEST 2019
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 <jfreimann at redhat.com>
>Signed-off-by: David Marchand <david.marchand at redhat.com>
>---
> lib/librte_ethdev/rte_ethdev.c | 5 +++++
> lib/librte_ethdev/rte_ethdev.h | 6 +++---
> 2 files changed, 8 insertions(+), 3 deletions(-)
>
Thanks David!
Reviewed-by: Jens Freimann <jfreimann at redhat.com>
More information about the dev
mailing list