|
@@ -568,7 +568,7 @@ int ip_defrag(struct sk_buff *skb, u32 user)
|
|
|
|
|
|
IP_INC_STATS_BH(IPSTATS_MIB_REASMREQDS);
|
|
IP_INC_STATS_BH(IPSTATS_MIB_REASMREQDS);
|
|
|
|
|
|
- net = skb->dev->nd_net;
|
|
|
|
|
|
+ net = skb->dev ? skb->dev->nd_net : skb->dst->dev->nd_net;
|
|
/* Start by cleaning up the memory. */
|
|
/* Start by cleaning up the memory. */
|
|
if (atomic_read(&net->ipv4.frags.mem) > net->ipv4.frags.high_thresh)
|
|
if (atomic_read(&net->ipv4.frags.mem) > net->ipv4.frags.high_thresh)
|
|
ip_evictor(net);
|
|
ip_evictor(net);
|