projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e42a43a
)
sctp: Use skb_queue_is_first().
author
David S. Miller
<davem@davemloft.net>
Tue, 7 Aug 2018 06:25:13 +0000
(23:25 -0700)
committer
David 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
patch
|
blob
|
history
diff --git
a/net/sctp/ulpqueue.c
b/net/sctp/ulpqueue.c
index 0b427100b0d4a29001b8124ae7c36505d8f01ff7..331cc734e3dbd2baf028aa62ff8e482974dad720 100644
(file)
--- 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;