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)
commit23aa6d5088e3bd65de77c5c307237b9937f8b48a
tree8c829d8e484030b8471fb1573f8eddba3d453fad
parent49b9f431ff0d845a36be0b3ede35ec324f2e5fee
net: stmmac: fix leaks in probe

These two error paths should clean up before returning.

Fixes: 2bb4b98b60d7 ("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