[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140424150019.GE1960@order.stressinduktion.org>
Date: Thu, 24 Apr 2014 17:00:19 +0200
From: Hannes Frederic Sowa <hannes@...essinduktion.org>
To: Lorenzo Colitti <lorenzo@...gle.com>
Cc: netdev@...r.kernel.org, yoshfuji@...ux-ipv6.org,
davem@...emloft.net, eric.dumazet@...il.com
Subject: Re: [PATCH net-next v4 1/3] net: ipv6: Unduplicate {raw,udp}v6_sendmsg code
On Wed, Apr 23, 2014 at 03:37:56PM +0900, Lorenzo Colitti wrote:
> if (msg->msg_flags&MSG_CONFIRM)
> goto do_confirm;
> @@ -1262,8 +1164,6 @@ back_from_confirm:
> up->pending = AF_INET6;
>
> do_append_data:
> - if (dontfrag < 0)
> - dontfrag = np->dontfrag;
I am afraid we could jump to do_append_data without having dontfrag
initialized. The jump happens before we call to ip6_datagram_send_common.
So the initialization of dontfrag to -1 needs to be added to the caller.
> up->len += ulen;
> getfrag = is_udplite ? udplite_getfrag : ip_generic_getfrag;
> err = ip6_append_data(sk, getfrag, msg->msg_iov, ulen,
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists