linux/drivers/net/ethernet/altera
Vince Bridgers a76420092d Altera TSE: Fix Panic in probe routine when phy probe fails
This patch addresses a fault in the error recovery path of the probe
routine where the netdev structure was not being unregistered properly
leading to a panic only when the phy probe failed.

Abbreviated panic stack seen is as follows:

(free_netdev+0xXX) from (altera_tse_probe+0xXX)
(altera_tse_probe+0xXX) from (platform_drv_probe+0xXX)
(platform_drv_probe+0xXX) from (driver_probe_device+0xXX)
(driver_probe_device+0xXX) from (__driver_attach+0xXX)
(__driver_attach+0xXX) from (bus_for_each_dev+0xXX)
(bus_for_each_dev+0xXX) from (driver_attach+0xXX)
(driver_attach+0xXX) from (bus_add_driver+0xXX)
(bus_add_driver+0xXX) from (driver_register+0xXX)
(driver_register+0xXX) from (__platform_driver_register+0xXX)
(__platform_driver_register+0xXX) from (altera_tse_driver_init+0xXX)
(altera_tse_driver_init+0xXX) from (do_one_initcall+0xXX)
(do_one_initcall+0xXX) from (kernel_init_freeable+0xXX)
(kernel_init_freeable+0xXX) from (kernel_init+0xXX)
(kernel_init+0xXX) from (ret_from_fork+0xXX)

Signed-off-by: Vince Bridgers <vbridgers2013@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-04-26 12:26:26 -04:00
..
altera_msgdma.c Altera TSE: Work around unaligned DMA receive packet issue with Altera SGDMA 2014-04-26 12:26:26 -04:00
altera_msgdma.h Altera TSE: Work around unaligned DMA receive packet issue with Altera SGDMA 2014-04-26 12:26:26 -04:00
altera_msgdmahw.h
altera_sgdma.c Altera TSE: Work around unaligned DMA receive packet issue with Altera SGDMA 2014-04-26 12:26:26 -04:00
altera_sgdma.h Altera TSE: Work around unaligned DMA receive packet issue with Altera SGDMA 2014-04-26 12:26:26 -04:00
altera_sgdmahw.h
altera_tse_ethtool.c Altera TSE: Set version number by driver's get regs 2014-03-24 12:45:00 -04:00
altera_tse_main.c Altera TSE: Fix Panic in probe routine when phy probe fails 2014-04-26 12:26:26 -04:00
altera_tse.h Altera TSE: Set the Pause Quanta value to the IEEE default value 2014-04-26 12:26:26 -04:00
altera_utils.c Altera TSE: Add Miscellaneous Files for Altera Ethernet Driver 2014-03-17 21:26:57 -04:00
altera_utils.h Altera TSE: Add Miscellaneous Files for Altera Ethernet Driver 2014-03-17 21:26:57 -04:00
Kconfig Altera TSE: Add Altera Ethernet Driver Makefile and Kconfig 2014-03-17 21:26:57 -04:00
Makefile Altera TSE: Add Altera Ethernet Driver Makefile and Kconfig 2014-03-17 21:26:57 -04:00