]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: Fix SKB list traversal in sctp_intl_store_reasm().
authorDavid S. Miller <davem@davemloft.net>
Sun, 11 Nov 2018 03:28:27 +0000 (19:28 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Nov 2018 03:28:27 +0000 (19:28 -0800)
commit25d63baacd713d58d560000ea5a0e3236ba51fbb
treecea1c8ab0d2ebc06f38790b3f84411281003f29d
parent73ae7a5e7846c8bc9e0b4d0a8e75f7ac2f54b483
sctp: Fix SKB list traversal in 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