summaryrefslogtreecommitdiff
path: root/lib/crypto/mpi/mpiutil.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2025-06-18 18:23:41 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2025-06-29 19:03:46 -0400
commitaab771f34e63ef89e195b63d121abcb55eebfde6 (patch)
tree1b0cce428051480373090d0a8d8eb7bc9d6af5d6 /lib/crypto/mpi/mpiutil.c
parent663206854f020ec6fc6bfd3d52f501a28ede1403 (diff)
take freeing of emptied mnt_namespace to namespace_unlock()
Freeing of a namespace must be delayed until after we'd dealt with mount notifications (in namespace_unlock()). The reasons are not immediately obvious (they are buried in ->prev_ns handling in mnt_notify()), and having that free_mnt_ns() explicitly called after namespace_unlock() is asking for trouble - it does feel like they should be OK to free as soon as they've been emptied. Make the things more explicit by setting 'emptied_ns' under namespace_sem and having namespace_unlock() free the sucker as soon as it's safe to free. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions