Re: [dpdk-dev] [PATCH v3] net/dpaa: add null point check and fix mem leak

2018-01-19 Thread Ferruh Yigit
On 1/18/2018 11:48 AM, Yong Wang wrote: > There are several func calls to rte_zmalloc() which don't do null > point check on the return value. And before return, the memory is not > freed. Fix it by adding null point check and rte_free(). Fixes: 37f9b54bd3cf ("net/dpaa: support Tx and Rx queu

[dpdk-dev] [PATCH v3] net/dpaa: add null point check and fix mem leak

2018-01-18 Thread Yong Wang
There are several func calls to rte_zmalloc() which don't do null point check on the return value. And before return, the memory is not freed. Fix it by adding null point check and rte_free(). Signed-off-by: Yong Wang --- v3: * Rebase on master and modify again. v2: * Fix code style warning. ---

[dpdk-dev] [PATCH v3] net/dpaa: add null point check and fix mem leak

2018-01-18 Thread Yong Wang
There are several func calls to rte_zmalloc() which don't do null point check on the return value. And before return, the memory is not freed. Fix it by adding null point check and rte_free(). Signed-off-by: Yong Wang Reviewed-By: Shreyansh Jain --- v3: * Rebase on master and modify again. v2:

[dpdk-dev] [PATCH v3] net/dpaa: add null point check and fix mem leak

2018-01-18 Thread Yong Wang
There are several func calls to rte_zmalloc() which don't do null point check on the return value. And before return, the memory is not freed. Fix it by adding null point check and rte_free(). Signed-off-by: Yong Wang Reviewed-By: Shreyansh Jain --- v3: * Rebase on master and modify again. v2: