]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: Fix SKB list traversal in sctp_intl_store_ordered().
authorDavid S. Miller <davem@davemloft.net>
Sun, 11 Nov 2018 03:32:23 +0000 (19:32 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Nov 2018 03:32:23 +0000 (19:32 -0800)
commite7de1f5624b78c984dc03a533fba548a8115d0ae
treed06dda58359ade7f684f10eb696a99ff56126cda
parent0c06f1250ceff7a8f88c34466e3f7cb050170c7a
sctp: Fix SKB list traversal in sctp_intl_store_ordered().

Same change as made to sctp_intl_store_reasm().

To be fully correct, an iterator has an undefined value when something
like skb_queue_walk() naturally terminates.

This will actually matter when SKB queues are converted over to
list_head.

Formalize what this code ends up doing with the current
implementation.

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