]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: fix leaks in probe
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 12 Jul 2022 14:42:25 +0000 (17:42 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Jul 2022 13:21:42 +0000 (14:21 +0100)
commitea0953be82694996bc9cd2616acbb0a51e02419e
tree8c829d8e484030b8471fb1573f8eddba3d453fad
parent677b1391b719d1c021b5a3e32fd78d41ecab21b5
net: stmmac: fix leaks in probe

These two error paths should clean up before returning.

Fixes: 3c7d91cd5f9a ("net: stmmac: Add Ingenic SoCs MAC support.")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-ingenic.c