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

Xing, Beilei beilei.xing at intel.com
Fri Jan 26 05:57:34 CET 2018


> -----Original Message-----
> From: Yong Wang [mailto:wang.yong19 at zte.com.cn]
> Sent: Thursday, January 25, 2018 5:01 PM
> To: Xing, Beilei <beilei.xing at intel.com>
> Cc: dev at dpdk.org; Yong Wang <wang.yong19 at zte.com.cn>
> Subject: [PATCH v4] net/i40e: add null point check and fix mem leak
> 
> 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: 078259773da9 ("net/i40e: store ethertype filter")
> Fixes: 425c3325f0b0 ("net/i40e: store tunnel filter")
> Fixes: c50474f31efe ("net/i40e: support tunnel filter to VF")
> Fixes: 5c53c82c8174 ("net/i40e: store flow director filter")
> 
> Signed-off-by: Yong Wang <wang.yong19 at zte.com.cn>

Acked-by: Beilei Xing <beilei.xing at intel.com>


More information about the dev mailing list