[dpdk-dev] [PATCH v3]/driver/raw/ifpga_rawdev: fix a memory leak bug in ifpga
Zhang, Tianfei
tianfei.zhang at intel.com
Wed Jan 2 03:47:43 CET 2019
> -----Original Message-----
> From: Pei, Andy
> Sent: Tuesday, December 25, 2018 10:02 PM
> To: dev at dpdk.org
> Cc: Xu, Rosen <rosen.xu at intel.com>; Zhang, Tianfei
> <tianfei.zhang at intel.com>; Pei, Andy <andy.pei at intel.com>
> Subject: [PATCH v3]/driver/raw/ifpga_rawdev: fix a memory leak bug in ifpga
>
> When ifpga_rawdev_create() allocate memory for a new rawdev, the
> original code allocate redundant memory for adapter, which is a member of
> the rawdev.
> What is actually necessary is the adapter to be initialized, not memory
> allocated.
>
> What is different in v3 from v2 is that the adapter is no longer need to be
> freed.
>
> fixes:ef1e8ede3da5
> cc: rosen.xu at intel.com
> cc: tianfei.zhang at intel.com
It looks good for me, Acked-by: Tianfei zhang <tianfei.zhang at intel.com>
More information about the dev
mailing list