diff options
author | 2016-11-17 17:40:02 +0100 | |
---|---|---|
committer | 2016-11-18 13:48:53 -0500 | |
commit | a7fe9d466f6a33558a38c7ca9d58bcc83512d577 (patch) | |
tree | 18fd009f13bae6e2ac498ffedb96d089ff1ac45e /net/unix/af_unix.c | |
parent | net: ethernet: ti: cpsw: fix of_node and phydev leaks (diff) | |
download | wireguard-linux-a7fe9d466f6a33558a38c7ca9d58bcc83512d577.tar.xz wireguard-linux-a7fe9d466f6a33558a38c7ca9d58bcc83512d577.zip |
net: ethernet: ti: cpsw: fix secondary-emac probe error path
Make sure to deregister the primary device in case the secondary emac
fails to probe.
kernel BUG at /home/johan/work/omicron/src/linux/net/core/dev.c:7743!
...
[<c05b3dec>] (free_netdev) from [<c04fe6c0>] (cpsw_probe+0x9cc/0xe50)
[<c04fe6c0>] (cpsw_probe) from [<c047b28c>] (platform_drv_probe+0x5c/0xc0)
Fixes: d9ba8f9e6298 ("driver: net: ethernet: cpsw: dual emac interface
implementation")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions