linux_dsm_epyc7002/drivers/net/usb
Andrew Lunn 38b4fe3201 net: usb: lan78xx: Connect PHY before registering MAC
As soon as the netdev is registers, the kernel can start using the
interface. If the driver connects the MAC to the PHY after the netdev
is registered, there is a race condition where the interface can be
opened without having the PHY connected.

Change the order to close this race condition.

Fixes: 92571a1aae ("lan78xx: Connect phy early")
Reported-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-10-18 10:22:04 -07:00
..
aqc111.c
aqc111.h
asix_common.c net: usb: Merge cpu_to_le32s + memcpy to put_unaligned_le32 2019-07-22 20:44:14 -07:00
asix_devices.c net: usb: asix: init MAC address buffers 2019-07-02 15:24:48 -07:00
asix.h
ax88172a.c
ax88179_178a.c net: usb: Merge cpu_to_le32s + memcpy to put_unaligned_le32 2019-07-22 20:44:14 -07:00
catc.c
cdc_eem.c
cdc_ether.c cdc_ether: fix rndis support for Mediatek based smartphones 2019-09-13 22:08:13 +02:00
cdc_mbim.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
cdc_ncm.c cdc_ncm: fix divide-by-zero caused by invalid wMaxPacketSize 2019-09-21 12:06:49 -07:00
cdc_subset.c
cdc-phonet.c
ch9200.c
cx82310_eth.c cx82310_eth: fix a memory leak bug 2019-08-18 13:01:54 -07:00
dm9601.c
gl620a.c
hso.c usb: hso: obey DMA rules in tiocmget 2019-10-17 15:05:10 -04:00
huawei_cdc_ncm.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
int51x1.c
ipheth.c
kalmia.c net: kalmia: fix memory leaks 2019-08-18 13:03:21 -07:00
kaweth.c
Kconfig
lan78xx.c net: usb: lan78xx: Connect PHY before registering MAC 2019-10-18 10:22:04 -07:00
lan78xx.h
lg-vl600.c net: usb: Delete unnecessary checks before the macro call “dev_kfree_skb” 2019-08-22 16:22:03 -07:00
Makefile
mcs7830.c
net1080.c
pegasus.c net: usb: pegasus: fix improper read if get_registers() fail 2019-08-01 18:18:27 -04:00
pegasus.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
plusb.c
qmi_wwan.c net: usb: qmi_wwan: add Telit 0x1050 composition 2019-10-09 19:59:19 -07:00
r8152.c r8152: Set macpassthru in reset_resume callback 2019-10-04 17:26:03 -07:00
rndis_host.c
rtl8150.c net: usb: Delete unnecessary checks before the macro call “dev_kfree_skb” 2019-08-22 16:22:03 -07:00
sierra_net.c
smsc75xx.c net: usb: Merge cpu_to_le32s + memcpy to put_unaligned_le32 2019-07-22 20:44:14 -07:00
smsc75xx.h
smsc95xx.c
smsc95xx.h
sr9700.c
sr9700.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
sr9800.c net: usb: sr9800: fix uninitialized local variable 2019-10-15 21:02:12 -07:00
sr9800.h
usbnet.c usbnet: ignore endpoints with invalid wMaxPacketSize 2019-09-21 12:06:55 -07:00
zaurus.c