]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: do not leak chunks that are sent to unconfirmed paths
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Fri, 18 Mar 2016 21:39:19 +0000 (18:39 -0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 Mar 2016 20:31:12 +0000 (16:31 -0400)
commit8e445a903c28dec627eedba77f702287038e1e0b
treead0e4efc26471dea63954f2c34fe6c1c31cc01f3
parente637f33afeec3e8d1dbc95dbd27d1cd908ae8dc2
sctp: do not leak chunks that are sent to unconfirmed paths

Currently, if a chunk is scheduled to be sent through a transport that
is currently unconfirmed, it will be leaked as it is dequeued from outq
and is not re-queued nor freed.

As I'm not aware of any situation that may lead to this situation, I'm
fixing this by freeing the chunk and also logging a trace so that we can
fix the other bug if it ever happens.

Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/outqueue.c