diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-10-12 05:32:17 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-12 05:32:17 -0400 |
commit | 206855c321adee56db3946ca09a5887cddb9d598 (patch) | |
tree | 13a2729d4d0e37170552bd9ad3c6bba71ba0c55c /include/net/sctp/sctp.h | |
parent | e8d3f455de4f42d4bab2f6f1aeb2cf3bd18eb508 (diff) | |
parent | cb58ffc3889f0545628f138f849e759a331b8ddc (diff) |
Merge branch 'x86/urgent' into core/signal
Conflicts:
arch/x86/kernel/signal_64.c
Diffstat (limited to 'include/net/sctp/sctp.h')
-rw-r--r-- | include/net/sctp/sctp.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index 17b932b8a55a..703305d00365 100644 --- a/include/net/sctp/sctp.h +++ b/include/net/sctp/sctp.h | |||
@@ -406,10 +406,7 @@ struct sctp_association *sctp_id2assoc(struct sock *sk, sctp_assoc_t id); | |||
406 | 406 | ||
407 | /* A macro to walk a list of skbs. */ | 407 | /* A macro to walk a list of skbs. */ |
408 | #define sctp_skb_for_each(pos, head, tmp) \ | 408 | #define sctp_skb_for_each(pos, head, tmp) \ |
409 | for (pos = (head)->next;\ | 409 | skb_queue_walk_safe(head, pos, tmp) |
410 | tmp = (pos)->next, pos != ((struct sk_buff *)(head));\ | ||
411 | pos = tmp) | ||
412 | |||
413 | 410 | ||
414 | /* A helper to append an entire skb list (list) to another (head). */ | 411 | /* A helper to append an entire skb list (list) to another (head). */ |
415 | static inline void sctp_skb_list_tail(struct sk_buff_head *list, | 412 | static inline void sctp_skb_list_tail(struct sk_buff_head *list, |
@@ -420,10 +417,7 @@ static inline void sctp_skb_list_tail(struct sk_buff_head *list, | |||
420 | sctp_spin_lock_irqsave(&head->lock, flags); | 417 | sctp_spin_lock_irqsave(&head->lock, flags); |
421 | sctp_spin_lock(&list->lock); | 418 | sctp_spin_lock(&list->lock); |
422 | 419 | ||
423 | list_splice((struct list_head *)list, (struct list_head *)head->prev); | 420 | skb_queue_splice_tail_init(list, head); |
424 | |||
425 | head->qlen += list->qlen; | ||
426 | list->qlen = 0; | ||
427 | 421 | ||
428 | sctp_spin_unlock(&list->lock); | 422 | sctp_spin_unlock(&list->lock); |
429 | sctp_spin_unlock_irqrestore(&head->lock, flags); | 423 | sctp_spin_unlock_irqrestore(&head->lock, flags); |