Re: [PATCH net] net: defxx: Fix missing err handling in dfx_init()

From: Jiri Pirko
Date: Wed Dec 07 2022 - 08:58:14 EST


Wed, Dec 07, 2022 at 08:20:45AM CET, liuyongqiang13@xxxxxxxxxx wrote:
>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@xxxxxxxxxx>

Reviewed-by: Jiri Pirko <jiri@xxxxxxxxxx>