diff options
Diffstat (limited to 'net/ipv4/ip_input.c')
-rw-r--r-- | net/ipv4/ip_input.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/ipv4/ip_input.c b/net/ipv4/ip_input.c index 4ebc6feee250..93134b0eab0c 100644 --- a/net/ipv4/ip_input.c +++ b/net/ipv4/ip_input.c | |||
@@ -326,8 +326,11 @@ static int ip_rcv_finish(struct sk_buff *skb) | |||
326 | 326 | ||
327 | rcu_read_lock(); | 327 | rcu_read_lock(); |
328 | ipprot = rcu_dereference(inet_protos[protocol]); | 328 | ipprot = rcu_dereference(inet_protos[protocol]); |
329 | if (ipprot && ipprot->early_demux) | 329 | if (ipprot && ipprot->early_demux) { |
330 | ipprot->early_demux(skb); | 330 | ipprot->early_demux(skb); |
331 | /* must reload iph, skb->head might have changed */ | ||
332 | iph = ip_hdr(skb); | ||
333 | } | ||
331 | rcu_read_unlock(); | 334 | rcu_read_unlock(); |
332 | } | 335 | } |
333 | 336 | ||