]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
ipv4: ip_fragment: fix unbalanced rcu_read_unlock()
authorPatrick McHardy <kaber@trash.net>
Tue, 2 Feb 2010 19:46:50 +0000 (11:46 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Feb 2010 19:46:50 +0000 (11:46 -0800)
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_fragment.c

index 9f41bd31175420ae85e54c06a3268ba618410c07..b59430bc041ca99d4d653e5a1791bd279392ffc5 100644 (file)
@@ -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);