Skip to content

Commit

Permalink
ipv4: ip_fragment: fix unbalanced rcu_read_unlock()
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Feb 2, 2010
1 parent 2a6ace1 commit d1c9ae6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions net/ipv4/ip_fragment.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,9 @@ static void ip_expire(unsigned long arg)

/* Send an ICMP "Fragment Reassembly Timeout" message. */
icmp_send(head, ICMP_TIME_EXCEEDED, ICMP_EXC_FRAGTIME, 0);
}

out_rcu_unlock:
rcu_read_unlock();
rcu_read_unlock();
}
out:
spin_unlock(&qp->q.lock);
ipq_put(qp);
Expand Down

0 comments on commit d1c9ae6

Please sign in to comment.