[dpdk-dev] [PATCH v3 1/1] bonding: fix device initialisation error handling

2015-08-10 Thread Thomas Monjalon
> > If the name parameter to rte_eth_bond_create() was NULL, > > there was a segmentation fault because eth_dev was also NULL. > > Add error handling of mac_addrs memory allocation. > > Add call to rte_eth_dev_release_port() in error handling. > > > > Signed-off-by: Bernard Iremonger > Acked-by:

[dpdk-dev] [PATCH v3 1/1] bonding: fix device initialisation error handling

2015-08-06 Thread Jastrzebski, MichalX K
> -Original Message- > From: Iremonger, Bernard > Sent: Wednesday, August 05, 2015 4:04 PM > To: dev at dpdk.org > Cc: Jastrzebski, MichalX K; Liu, Yong; Iremonger, Bernard > Subject: [PATCH v3 1/1] bonding: fix device initialisation error handling > > If the name parameter to rte_eth_bond

[dpdk-dev] [PATCH v3 1/1] bonding: fix device initialisation error handling

2015-08-05 Thread Bernard Iremonger
If the name parameter to rte_eth_bond_create() was NULL, there was a segmentation fault because eth_dev was also NULL. Add error handling of mac_addrs memory allocation. Add call to rte_eth_dev_release_port() in error handling. Signed-off-by: Bernard Iremonger --- drivers/net/bonding/rte_eth_bon