]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/ipv6/raw.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394...
[karo-tx-linux.git] / net / ipv6 / raw.c
index 3486f62befa3a4c87ea469b4fc0af9bb77663b79..6f7824e1cea48ea16b4a3860475e4fd367860834 100644 (file)
@@ -542,8 +542,7 @@ static int rawv6_push_pending_frames(struct sock *sk, struct flowi6 *fl6,
                goto out;
 
        offset = rp->offset;
-       total_len = inet_sk(sk)->cork.base.length - (skb_network_header(skb) -
-                                                    skb->data);
+       total_len = inet_sk(sk)->cork.base.length;
        if (offset >= total_len - 1) {
                err = -EINVAL;
                ip6_flush_pending_frames(sk);