]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: dwmac-meson8b: Fix an error handling path in 'meson8b_dwmac_probe()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 11 Jun 2018 17:52:27 +0000 (19:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Jun 2018 22:36:14 +0000 (15:36 -0700)
commit7ed0d561bad0641ada6afbfb1e1a5e408299b647
treea9398f83e01a5ec0dd75b3a0f3077b1f61ae2a28
parent4ad6ef6dd05a363d4f8356f2dc46ae3b6ef6bfe7
net: stmmac: dwmac-meson8b: Fix an error handling path in 'meson8b_dwmac_probe()'

If 'of_device_get_match_data()' fails, we need to release some resources as
done in the other error handling path of this function.

Fixes: dd844d04d985 ("net: stmmac: dwmac-meson: extend phy mode setting")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-meson8b.c