RE: [PATCH net-next] dpaa_eth: Fix one possible memleak in dpaa_eth_probe

2020-07-20 Thread liujian (CE)
> -Original Message- > From: David Miller [mailto:da...@davemloft.net] > Sent: Saturday, July 18, 2020 9:42 AM > To: liujian (CE) > Cc: madalin.bu...@nxp.com; k...@kernel.org; laurentiu.tu...@nxp.com; > netdev@vger.kernel.org > Subject: Re: [PATCH net-next] dpaa_

Re: [PATCH net-next] dpaa_eth: Fix one possible memleak in dpaa_eth_probe

2020-07-17 Thread David Miller
From: Liu Jian Date: Fri, 17 Jul 2020 17:05:28 +0800 > When dma_coerce_mask_and_coherent() fails, the alloced netdev need to be > freed. > > Fixes: 060ad66f9795 ("dpaa_eth: change DMA device") > Signed-off-by: Liu Jian This is a bug fix introduced in v5.5, therefore it should be targetting 'n