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

From: David Miller
Date: Mon Aug 24 2020 - 08:59:31 EST


From: Dinghao Liu <dinghao.liu@xxxxxxxxxx>
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 <dinghao.liu@xxxxxxxxxx>

Applied and queued up for -stable, thanks.