]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - net/ipv4/ip_fragment.c
[NET]: Make the device list and device lookups per namespace.
[mirror_ubuntu-artful-kernel.git] / net / ipv4 / ip_fragment.c
index 0231bdcb2ab7620b55c1aaeda45d256c5a0de2ef..fabb86db763b01efb6fde8d29178420e275f9dd7 100644 (file)
@@ -292,7 +292,7 @@ static void ip_expire(unsigned long arg)
        if ((qp->last_in&FIRST_IN) && qp->fragments != NULL) {
                struct sk_buff *head = qp->fragments;
                /* Send an ICMP "Fragment Reassembly Timeout" message. */
-               if ((head->dev = dev_get_by_index(qp->iif)) != NULL) {
+               if ((head->dev = dev_get_by_index(&init_net, qp->iif)) != NULL) {
                        icmp_send(head, ICMP_TIME_EXCEEDED, ICMP_EXC_FRAGTIME, 0);
                        dev_put(head->dev);
                }