net: lapbether: use netdev_lockdep_set_classes() helper
Subsystems (3)
PATCH 1/1 net: lapbether: use netdev_lockdep_set_classes() helper
drivers/net/wan/lapbether.c uses stacked devices. Like similar drivers, it must use netdev_lockdep_set_classes() to avoid LOCKDEP splats.
This is similar to commit 9bfc9d65a1dc ("hamradio:
use netdev_lockdep_set_classes() helper")
Fixes 7e4d784f5810 ("net: hold netdev instance lock during rtnetlink operations")
Reported-by [email protected]
Signed-off-by Eric Dumazet <[email protected]>
--- drivers/net/wan/lapbether.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/wan/lapbether.c +2 -0
@@ -39,6 +39,7 @@#include <linux/lapb.h> #include <linux/init.h> +#include <net/netdev_lock.h> #include <net/x25device.h> static const u8 bcast_addr[6 ] = {0xFF ,0xFF ,0xFF ,0xFF ,0xFF ,0xFF };
@@ -366,6 +367,7 @@ static const struct net_device_ops lapbeth_netdev_ops = {static void lapbeth_setup (struct net_device *dev) { +netdev_lockdep_set_classes (dev); dev->netdev_ops = &lapbeth_netdev_ops; dev->needs_free_netdev = true; dev->type =ARPHRD_X25 ;
Signature · 1 line
2.49.0.395.g12beb8f557-goog
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Thu, 27 Mar 2025 14:44:39 +0000 you wrote:
drivers/net/wan/lapbether.cuses stacked devices. Like similar drivers, it must usenetdev_lockdep_set_classes()to avoid LOCKDEP splats.This is similar to commit
9bfc9d65a1dc("hamradio:
usenetdev_lockdep_set_classes()helper")[...]
Here is the summary with links:
- [net] net: lapbether: use netdev_lockdep_set_classes() helper
https://git.kernel.org/netdev/net/c/7220e8f4d4ee
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html