]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - net/packet/af_packet.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
[mirror_ubuntu-jammy-kernel.git] / net / packet / af_packet.c
index 20a1bd0e6549dcd5c55592c9138c4e99556f3816..4b66c752eae5d99b2bfe5fa7832a1301d20519ef 100644 (file)
@@ -3330,10 +3330,11 @@ static int packet_getsockopt(struct socket *sock, int level, int optname,
 }
 
 
-static int packet_notifier(struct notifier_block *this, unsigned long msg, void *data)
+static int packet_notifier(struct notifier_block *this,
+                          unsigned long msg, void *ptr)
 {
        struct sock *sk;
-       struct net_device *dev = data;
+       struct net_device *dev = netdev_notifier_info_to_dev(ptr);
        struct net *net = dev_net(dev);
 
        rcu_read_lock();