[ovs-git] [openvswitch/ovs] 96e9b1: netdev-dpdk: Fix mempool segfault.

GitHub noreply at github.com
Fri Mar 10 01:28:12 UTC 2017


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 96e9b168e0ed45823616eddbe879e06976ecfb98
      https://github.com/openvswitch/ovs/commit/96e9b168e0ed45823616eddbe879e06976ecfb98
  Author: Ian Stokes <ian.stokes at intel.com>
  Date:   2017-03-09 (Thu, 09 Mar 2017)

  Changed paths:
    M lib/netdev-dpdk.c

  Log Message:
  -----------
  netdev-dpdk: Fix mempool segfault.

The dpdk_mp_get() function can return a NULL pointer which leads to a
segfault when a mempool cannot be created. The lack of a return value
check for the function netdev_dpdk_mempool_configure() when called in
netdev_dpdk_reconfigure() can result in a segfault also as
a NULL pointer for the mempool will be passed to rte_eth_rx_queue_setup().

Fix this by adding appropriate NULL pointer and return value checks to
dpdk_mp_get(), netdev_dpdk_reconfigure() and dpdk_vhost_reconfigure_helper().

Signed-off-by: Ian Stokes <ian.stokes at intel.com>
Fixes: 2ae3d542 ("netdev-dpdk: Refactor dpdk_mp_get().")
Fixes: 0072e931 ("netdev-dpdk: add support for jumbo frames")
CC: Daniele Di Proietto <diproiettod at vmware.com>
CC: Mark Kavanagh <mark.b.kavanagh at intel.com>
Signed-off-by: Daniele Di Proietto <diproiettod at vmware.com>




More information about the git mailing list