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

Zhang, Helin helin.zhang at intel.com
Fri Jan 26 10:37:45 CET 2018



> -----Original Message-----
> From: dev [mailto:dev-bounces at dpdk.org] On Behalf Of Xing, Beilei
> Sent: Friday, January 26, 2018 12:58 PM
> To: Yong Wang
> Cc: dev at dpdk.org
> Subject: Re: [dpdk-dev] [PATCH v4] net/i40e: add null point check and fix mem
> leak
> 
> > -----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>
Applied to dpdk-next-net-intel, with commit log changes. Thanks!

/Helin


More information about the dev mailing list