]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: defxx: Fix missing err handling in dfx_init()
authorYongqiang Liu <liuyongqiang13@huawei.com>
Wed, 7 Dec 2022 07:20:45 +0000 (07:20 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:26 +0000 (13:32 +0100)
commite6730e15df96805799f097078c38ee821c6c5183
tree54fcb7a7c53b76a189d06ebad6c16fbcb88db84c
parent6af94424012cb56d7c21479aab876f78f3d9e2cf
net: defxx: Fix missing err handling in dfx_init()

[ Upstream commit ae18dcdff0f8d7e84cd3fd9f496518b5e72d185d ]

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: e89a2cfb7d7b5 ("[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>
drivers/net/fddi/defxx.c