net: stmmac: fix leaks in probe
These two error paths should clean up before returning. Fixes: 2bb4b98b ("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>
Showing
Please register or sign in to comment