From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [PATCH] sctp: xmit sctp packet always return no route error Date: Mon, 29 Jun 2009 13:14:57 +0200 Message-ID: <4A48A231.3040805@cosmosbay.com> References: <4A488021.50002@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: David Miller , Vlad Yasevich , Eric Dumazet , Netdev , linux-sctp@vger.kernel.org To: Wei Yongjun Return-path: Received: from gw1.cosmosbay.com ([212.99.114.194]:46407 "EHLO gw1.cosmosbay.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751549AbZF2LPi (ORCPT ); Mon, 29 Jun 2009 07:15:38 -0400 In-Reply-To: <4A488021.50002@cn.fujitsu.com> Sender: netdev-owner@vger.kernel.org List-ID: Wei Yongjun a =A8=A6crit : > Commit 'net: skb->dst accessors'(adf30907d63893e4208dfe3f5c88ae12bc2f= 25d5) > broken the sctp protocol stack, the sctp packet can never be sent out= after > Eric Dumazet's patch, which have typo in the sctp code. >=20 > Signed-off-by: Wei Yongjun Oops, sorry ! Acked-by: Eric Dumazet > --- > net/sctp/output.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) >=20 > diff --git a/net/sctp/output.c b/net/sctp/output.c > index b764114..b94c211 100644 > --- a/net/sctp/output.c > +++ b/net/sctp/output.c > @@ -407,7 +407,7 @@ int sctp_packet_transmit(struct sctp_packet *pack= et) > } > dst =3D dst_clone(tp->dst); > skb_dst_set(nskb, dst); > - if (dst) > + if (!dst) > goto no_route; > =20 > /* Build the SCTP header. */