]> err.no Git - linux-2.6/blobdiff - net/ipv6/raw.c
[PATCH] e1000: correct rx_dropped counting
[linux-2.6] / net / ipv6 / raw.c
index 2ad37893334a840e2f40732d8735438307c5ed56..5aa3691c578d3a0198aced9809b996a0569f1562 100644 (file)
@@ -782,10 +782,8 @@ static int rawv6_sendmsg(struct kiocb *iocb, struct sock *sk,
        if (final_p)
                ipv6_addr_copy(&fl.fl6_dst, final_p);
 
-       if ((err = xfrm_lookup(&dst, &fl, sk, 0)) < 0) {
-               dst_release(dst);
+       if ((err = xfrm_lookup(&dst, &fl, sk, 0)) < 0)
                goto out;
-       }
 
        if (hlimit < 0) {
                if (ipv6_addr_is_multicast(&fl.fl6_dst))