aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/ulpqueue.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/ulpqueue.c')
-rw-r--r--net/sctp/ulpqueue.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/net/sctp/ulpqueue.c b/net/sctp/ulpqueue.c
index 1c1484ed605d..5dc94117e9d4 100644
--- a/net/sctp/ulpqueue.c
+++ b/net/sctp/ulpqueue.c
@@ -21,9 +21,8 @@
21 * See the GNU General Public License for more details. 21 * See the GNU General Public License for more details.
22 * 22 *
23 * You should have received a copy of the GNU General Public License 23 * You should have received a copy of the GNU General Public License
24 * along with GNU CC; see the file COPYING. If not, write to 24 * along with GNU CC; see the file COPYING. If not, see
25 * the Free Software Foundation, 59 Temple Place - Suite 330, 25 * <http://www.gnu.org/licenses/>.
26 * Boston, MA 02111-1307, USA.
27 * 26 *
28 * Please send any bug reports or fixes you make to the 27 * Please send any bug reports or fixes you make to the
29 * email address(es): 28 * email address(es):
@@ -44,9 +43,9 @@
44#include <net/sctp/sm.h> 43#include <net/sctp/sm.h>
45 44
46/* Forward declarations for internal helpers. */ 45/* Forward declarations for internal helpers. */
47static struct sctp_ulpevent * sctp_ulpq_reasm(struct sctp_ulpq *ulpq, 46static struct sctp_ulpevent *sctp_ulpq_reasm(struct sctp_ulpq *ulpq,
48 struct sctp_ulpevent *); 47 struct sctp_ulpevent *);
49static struct sctp_ulpevent * sctp_ulpq_order(struct sctp_ulpq *, 48static struct sctp_ulpevent *sctp_ulpq_order(struct sctp_ulpq *,
50 struct sctp_ulpevent *); 49 struct sctp_ulpevent *);
51static void sctp_ulpq_reasm_drain(struct sctp_ulpq *ulpq); 50static void sctp_ulpq_reasm_drain(struct sctp_ulpq *ulpq);
52 51
@@ -108,7 +107,7 @@ int sctp_ulpq_tail_data(struct sctp_ulpq *ulpq, struct sctp_chunk *chunk,
108 event = sctp_ulpq_reasm(ulpq, event); 107 event = sctp_ulpq_reasm(ulpq, event);
109 108
110 /* Do ordering if needed. */ 109 /* Do ordering if needed. */
111 if ((event) && (event->msg_flags & MSG_EOR)){ 110 if ((event) && (event->msg_flags & MSG_EOR)) {
112 /* Create a temporary list to collect chunks on. */ 111 /* Create a temporary list to collect chunks on. */
113 skb_queue_head_init(&temp); 112 skb_queue_head_init(&temp);
114 __skb_queue_tail(&temp, sctp_event2skb(event)); 113 __skb_queue_tail(&temp, sctp_event2skb(event));
@@ -337,7 +336,8 @@ static struct sctp_ulpevent *sctp_make_reassembled_event(struct net *net,
337 pos = f_frag->next; 336 pos = f_frag->next;
338 337
339 /* Get the last skb in the f_frag's frag_list if present. */ 338 /* Get the last skb in the f_frag's frag_list if present. */
340 for (last = list; list; last = list, list = list->next); 339 for (last = list; list; last = list, list = list->next)
340 ;
341 341
342 /* Add the list of remaining fragments to the first fragments 342 /* Add the list of remaining fragments to the first fragments
343 * frag_list. 343 * frag_list.
@@ -727,7 +727,7 @@ static void sctp_ulpq_reasm_drain(struct sctp_ulpq *ulpq)
727 727
728 while ((event = sctp_ulpq_retrieve_reassembled(ulpq)) != NULL) { 728 while ((event = sctp_ulpq_retrieve_reassembled(ulpq)) != NULL) {
729 /* Do ordering if needed. */ 729 /* Do ordering if needed. */
730 if ((event) && (event->msg_flags & MSG_EOR)){ 730 if ((event) && (event->msg_flags & MSG_EOR)) {
731 skb_queue_head_init(&temp); 731 skb_queue_head_init(&temp);
732 __skb_queue_tail(&temp, sctp_event2skb(event)); 732 __skb_queue_tail(&temp, sctp_event2skb(event));
733 733