Re: [PATCH] net: systemport: Fix memleak in bcm_sysport_probe

2020-08-24 Thread Florian Fainelli
On 8/23/2020 10:58 PM, Dinghao Liu wrote: When devm_kcalloc() fails, dev should be freed just like what we've done in the subsequent error paths. Fixes: 7b78be48a8eb6 ("net: systemport: Dynamically allocate number of TX rings") Signed-off-by: Dinghao Liu Acked-by: Florian Fainelli This

Re: [PATCH] net: systemport: Fix memleak in bcm_sysport_probe

2020-08-24 Thread David Miller
From: Dinghao Liu Date: Mon, 24 Aug 2020 13:58:31 +0800 > When devm_kcalloc() fails, dev should be freed just > like what we've done in the subsequent error paths. > > Fixes: 7b78be48a8eb6 ("net: systemport: Dynamically allocate number of TX > rings") > Signed-off-by: Dinghao Liu Applied and