OSDN Git Service

sctp: Use skb_queue_is_first().
authorDavid S. Miller <davem@davemloft.net>
Tue, 7 Aug 2018 06:25:13 +0000 (23:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 10 Sep 2018 17:06:53 +0000 (10:06 -0700)
Instead of direct skb_queue_head pointer accesses.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/ulpqueue.c

index 0b42710..331cc73 100644 (file)
@@ -459,7 +459,7 @@ static struct sctp_ulpevent *sctp_ulpq_retrieve_reassembled(struct sctp_ulpq *ul
                         * element in the queue, then count it towards
                         * possible PD.
                         */
-                       if (pos == ulpq->reasm.next) {
+                       if (skb_queue_is_first(&ulpq->reasm, pos)) {
                            pd_first = pos;
                            pd_last = pos;
                            pd_len = pos->len;