summaryrefslogtreecommitdiffstats
path: root/drivers/net/Space.c
diff options
context:
space:
mode:
authorNisar Sayed <Nisar.Sayed@microchip.com>2017-08-01 10:24:17 +0000
committerDavid S. Miller <davem@davemloft.net>2017-08-02 10:39:58 -0700
commitfb52c3b597f0b44e893ded8c253845561f9f57da (patch)
treec36011f60ae624e48fbe42646e8e9df2a4c56fc3 /drivers/net/Space.c
parent12c5d0c0485fd03127e24848af0f0aff399d2db9 (diff)
downloadlinux-fb52c3b597f0b44e893ded8c253845561f9f57da.tar.bz2
lan78xx: USB fast connect/disconnect crash fix
USB fast connect/disconnect crash fix When USB plugged/unplugged at fast rate, lan78xx_mdio_init() in lan78xx_bind() failing case is not handled. Whenever lan78xx_mdio_init() failed, dev->mdiobus will be freed, however since lan78xx_bind() not consider as error and try to proceed for further initialization in lan78xx_probe() which leads system hung/crash. Also when register_netdev() failed, netdev is freed without calling lan78xx_unbind(). Hence halting the failed cases right manner fixes the system crash/hung issue. Signed-off-by: Nisar Sayed <Nisar.Sayed@microchip.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/Space.c')
0 files changed, 0 insertions, 0 deletions