net: pass info struct via netdevice notifier
[linux-2.6-block.git] / net / ipv6 / ndisc.c
index 2712ab22a174087c09cc705e1f6adec2bd601154..a0962697a25743559b105c33a1114a2d2fdfda5e 100644 (file)
@@ -1568,7 +1568,7 @@ int ndisc_rcv(struct sk_buff *skb)
 
 static int ndisc_netdev_event(struct notifier_block *this, unsigned long event, void *ptr)
 {
-       struct net_device *dev = ptr;
+       struct net_device *dev = netdev_notifier_info_to_dev(ptr);
        struct net *net = dev_net(dev);
        struct inet6_dev *idev;