commit | c9fd9c5f4b935516ba8be31f2e7590caf0bc2c6f | [log] [tgz] |
---|---|---|
author | Florian Westphal <fw@strlen.de> | Wed Jan 29 15:54:43 2020 +0100 |
committer | David S. Miller <davem@davemloft.net> | Wed Jan 29 17:45:19 2020 +0100 |
tree | a6194eac628d6c1a180e1a8c99a50c49f14f9653 | |
parent | 44efc78d0e464ce70b45b165c005f8bedc17952e [diff] |
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>