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

Ferruh Yigit ferruh.yigit at intel.com
Fri Jan 19 20:38:39 CET 2018


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 queue setup")
    Fixes: 62f53995caaf ("net/dpaa: add frame count based tail drop with CGR")
    Cc: stable at dpdk.org

> Signed-off-by: Yong Wang <wang.yong19 at zte.com.cn>

Reviewed-By: Shreyansh Jain <shreyansh.jain at nxp.com>
(carried from previous version of the patch)

Applied to dpdk-next-net/master, thanks.


More information about the dev mailing list