]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/ipv4/ipmr.c
libceph: create_singlethread_workqueue() doesn't return ERR_PTRs
[karo-tx-linux.git] / net / ipv4 / ipmr.c
index 9d9610ae78553895e9f6ccb0ea8260fa4a66ac17..132a09664704ed73ed850e8961f11fa3e3641473 100644 (file)
@@ -980,7 +980,7 @@ static int ipmr_cache_report(struct mr_table *mrt,
 
        /* Copy the IP header */
 
-       skb->network_header = skb->tail;
+       skb_set_network_header(skb, skb->len);
        skb_put(skb, ihl);
        skb_copy_to_linear_data(skb, pkt->data, ihl);
        ip_hdr(skb)->protocol = 0;      /* Flag to the kernel this is a route add */
@@ -1609,7 +1609,7 @@ int ipmr_compat_ioctl(struct sock *sk, unsigned int cmd, void __user *arg)
 
 static int ipmr_device_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 mr_table *mrt;
        struct vif_device *v;