From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756147Ab3CZX0a (ORCPT ); Tue, 26 Mar 2013 19:26:30 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:52925 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755215Ab3CZWwH (ORCPT ); Tue, 26 Mar 2013 18:52:07 -0400 From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Xufeng Zhang , Neil Horman , Vlad Yasevich , "David S. Miller" Subject: [ 08/72] sctp: dont break the loop while meeting the active_path so as to find the matched transport Date: Tue, 26 Mar 2013 15:50:51 -0700 Message-Id: <20130326224920.556291981@linuxfoundation.org> X-Mailer: git-send-email 1.8.1.rc1.5.g7e0651a In-Reply-To: <20130326224919.675227837@linuxfoundation.org> References: <20130326224919.675227837@linuxfoundation.org> User-Agent: quilt/0.60-5.1.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Xufeng Zhang [ Upstream commit 2317f449af30073cfa6ec8352e4a65a89e357bdd ] sctp_assoc_lookup_tsn() function searchs which transport a certain TSN was sent on, if not found in the active_path transport, then go search all the other transports in the peer's transport_addr_list, however, we should continue to the next entry rather than break the loop when meet the active_path transport. Signed-off-by: Xufeng Zhang Acked-by: Neil Horman Acked-by: Vlad Yasevich Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/sctp/associola.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/sctp/associola.c +++ b/net/sctp/associola.c @@ -1050,7 +1050,7 @@ struct sctp_transport *sctp_assoc_lookup transports) { if (transport == active) - break; + continue; list_for_each_entry(chunk, &transport->transmitted, transmitted_list) { if (key == chunk->subh.data_hdr->tsn) {