> -----Original Message----- > From: Pei, Andy > Sent: Tuesday, December 25, 2018 10:02 PM > To: [email protected] > Cc: Xu, Rosen <[email protected]>; Zhang, Tianfei > <[email protected]>; Pei, Andy <[email protected]> > 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: [email protected] > cc: [email protected]
It looks good for me, Acked-by: Tianfei zhang <[email protected]>

