linux-stable/drivers/net/fddi
Yongqiang Liu fb2458d710 net: defxx: Fix missing err handling in dfx_init()
[ Upstream commit ae18dcdff0 ]

When eisa_driver_register() or tc_register_driver() failed,
the modprobe defxx would fail with some err log as follows:

 Error: Driver 'defxx' is already registered, aborting...

Fix this issue by adding err hanling in dfx_init().

Fixes: e89a2cfb7d ("[TC] defxx: TURBOchannel support")
Signed-off-by: Yongqiang Liu <liuyongqiang13@huawei.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-12-31 13:26:12 +01:00
..
skfp skfp/h: fix repeated words in comments 2022-08-12 11:20:29 +01:00
Kconfig FDDI: defxx: Implement dynamic CSR I/O address space selection 2021-03-10 13:08:15 -08:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
defxx.c net: defxx: Fix missing err handling in dfx_init() 2022-12-31 13:26:12 +01:00
defxx.h FDDI: defxx: Implement dynamic CSR I/O address space selection 2021-03-10 13:08:15 -08:00
defza.c fddi: defza: add missing pointer type cast 2021-10-25 10:28:47 -07:00
defza.h FDDI: defza: Add missing comment closing 2018-11-07 21:53:30 -08:00