]> Pileus Git - ~andy/linux/blobdiff - net/packet/af_packet.c
net: sctp: sctp_association_init: put refs in reverse order
[~andy/linux] / net / packet / af_packet.c
index 8ec1bca7f85908c22534eb2023fef135859997c3..79fe63246b27acf7a4a026cb185f28f65ffec6c0 100644 (file)
@@ -3331,10 +3331,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();