net: dsa: Fix dsa_legacy_register() return value
Subsystems (3)
PATCH 1/1 net: dsa: Fix dsa_legacy_register() return value
We need to make the dsa_legacy_register() stub return 0 in order for dsa_init_module() to successfully register and continue registering the ETH_P_XDSA packet handler.
Fixes 2a93c1a3651f ("net: dsa: Allow compiling out legacy support")
Reported-by Egil Hjelmeland <[email protected]>
Signed-off-by Florian Fainelli <[email protected]>
--- net/dsa/dsa_priv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/dsa/dsa_priv.h +1 -1
@@ -103,7 +103,7 @@ void dsa_legacy_unregister(void);#else static inline int dsa_legacy_register (void ) { -return -ENODEV ; +return 0 ; }static inline void dsa_legacy_unregister (void ) { }
Signature · 1 line
2.14.1
From: Florian Fainelli <[email protected]>
Date: Fri, 29 Dec 2017 11:05:45 -0800
Quoted 7 lines
We need to make the
dsa_legacy_register()stub return 0 in order fordsa_init_module()to successfully register and continue registering theETH_P_XDSApacket handler.Fixes 2a93c1a3651f ("net: dsa: Allow compiling out legacy support")Reported-by Egil Hjelmeland <[email protected]>Signed-off-by Florian Fainelli <[email protected]>
Applied, thanks Florian.