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

From: Florian Fainelli
Date: Mon Aug 24 2020 - 11:32:54 EST




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 <dinghao.liu@xxxxxxxxxx>

Acked-by: Florian Fainelli <f.fainelli@xxxxxxxxx>

This has already been applied, but this is good.
--
Florian