]> git.baikalelectronics.ru Git - kernel.git/commit
mptcp: defer freeing of cached ext until last moment
authorFlorian Westphal <fw@strlen.de>
Wed, 29 Jan 2020 14:54:43 +0000 (15:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jan 2020 16:45:19 +0000 (17:45 +0100)
commit77c2a50afda8cdc547db98e73429ceb07c09b32a
treea6194eac628d6c1a180e1a8c99a50c49f14f9653
parent7f9ddc9562aee20f9df4874f50bdadc65d8fcd5e
mptcp: defer freeing of cached ext until last moment

access to msk->cached_ext is only legal if the msk is locked or all
concurrent accesses are impossible.

Furthermore, once we start to tear down, we must make sure nothing else
can step in and allocate a new cached ext.

So place this code in the destroy callback where it belongs.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mptcp/protocol.c