diff options
Diffstat (limited to 'net/ipv4/ip_fragment.c')
-rw-r--r-- | net/ipv4/ip_fragment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_fragment.c b/net/ipv4/ip_fragment.c index 0231bdcb2ab7..fabb86db763b 100644 --- a/net/ipv4/ip_fragment.c +++ b/net/ipv4/ip_fragment.c | |||
@@ -292,7 +292,7 @@ static void ip_expire(unsigned long arg) | |||
292 | if ((qp->last_in&FIRST_IN) && qp->fragments != NULL) { | 292 | if ((qp->last_in&FIRST_IN) && qp->fragments != NULL) { |
293 | struct sk_buff *head = qp->fragments; | 293 | struct sk_buff *head = qp->fragments; |
294 | /* Send an ICMP "Fragment Reassembly Timeout" message. */ | 294 | /* Send an ICMP "Fragment Reassembly Timeout" message. */ |
295 | if ((head->dev = dev_get_by_index(qp->iif)) != NULL) { | 295 | if ((head->dev = dev_get_by_index(&init_net, qp->iif)) != NULL) { |
296 | icmp_send(head, ICMP_TIME_EXCEEDED, ICMP_EXC_FRAGTIME, 0); | 296 | icmp_send(head, ICMP_TIME_EXCEEDED, ICMP_EXC_FRAGTIME, 0); |
297 | dev_put(head->dev); | 297 | dev_put(head->dev); |
298 | } | 298 | } |