diff options
Diffstat (limited to 'net/sctp/ulpqueue.c')
-rw-r--r-- | net/sctp/ulpqueue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/ulpqueue.c b/net/sctp/ulpqueue.c index 0b427100b0d4..331cc734e3db 100644 --- a/net/sctp/ulpqueue.c +++ b/net/sctp/ulpqueue.c | |||
@@ -459,7 +459,7 @@ static struct sctp_ulpevent *sctp_ulpq_retrieve_reassembled(struct sctp_ulpq *ul | |||
459 | * element in the queue, then count it towards | 459 | * element in the queue, then count it towards |
460 | * possible PD. | 460 | * possible PD. |
461 | */ | 461 | */ |
462 | if (pos == ulpq->reasm.next) { | 462 | if (skb_queue_is_first(&ulpq->reasm, pos)) { |
463 | pd_first = pos; | 463 | pd_first = pos; |
464 | pd_last = pos; | 464 | pd_last = pos; |
465 | pd_len = pos->len; | 465 | pd_len = pos->len; |