net: pass info struct via netdevice notifier
[deliverable/linux.git] / net / xfrm / xfrm_policy.c
index 23cea0f74336c72b332e909994e242d216e5e2ae..536ccc95de89ff6aad96ea07a2e3fcf0498f342d 100644 (file)
@@ -2784,7 +2784,7 @@ static void __net_init xfrm_dst_ops_init(struct net *net)
 
 static int xfrm_dev_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);
 
        switch (event) {
        case NETDEV_DOWN:
This page took 0.023218 seconds and 5 git commands to generate.