Files
twx-linux/drivers
Corentin Labbe 29dcbbb5ab net: ethernet: dwmac-sun8i: Use the correct function in exit path
commit 40a1dcee2d upstream.

When PHY is not powered, the probe function fail and some resource are
still unallocated.
Furthermore some BUG happens:
dwmac-sun8i 5020000.ethernet: EMAC reset timeout
------------[ cut here ]------------
kernel BUG at /linux-next/net/core/dev.c:9844!

So let's use the right function (stmmac_pltfr_remove) in the error path.

Fixes: 9f93ac8d40 ("net-next: stmmac: Add dwmac-sun8i")
Cc: <stable@vger.kernel.org> # v4.15+
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-11-20 18:45:18 +01:00
..
2019-10-05 13:09:45 +02:00
2019-10-07 18:57:08 +02:00
2019-11-12 19:20:30 +01:00
2019-10-11 18:21:13 +02:00