summaryrefslogtreecommitdiffstats
path: root/net/sctp/ulpqueue.c
diff options
context:
space:
mode:
authorDavid S. Miller2018-08-07 08:25:13 +0200
committerDavid S. Miller2018-09-10 19:06:53 +0200
commit1181d629cc135fe346216c66f0f1fb9bfca51b33 (patch)
tree587e65d9277d49a5ac5a045ad1ef46fc6a82d68a /net/sctp/ulpqueue.c
parentlan78xx: Do not access skb_queue_head list pointers directly. (diff)
downloadkernel-qcow2-linux-1181d629cc135fe346216c66f0f1fb9bfca51b33.tar.gz
kernel-qcow2-linux-1181d629cc135fe346216c66f0f1fb9bfca51b33.tar.xz
kernel-qcow2-linux-1181d629cc135fe346216c66f0f1fb9bfca51b33.zip
sctp: Use skb_queue_is_first().
Instead of direct skb_queue_head pointer accesses. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/ulpqueue.c')
-rw-r--r--net/sctp/ulpqueue.c2
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
* 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;