mount: handle NULL values in mnt_ns_release()
authorChristian Brauner <brauner@kernel.org>
Mon, 29 Sep 2025 09:41:16 +0000 (11:41 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 29 Sep 2025 16:08:18 +0000 (09:08 -0700)
commit6c7ca6a02f8f9549a438a08a23c6327580ecf3d6
tree393106284b1ae9863edadd8090d22dda52f39577
parentb7ce6fa90fd9554482847b19756a06232c1dc78c
mount: handle NULL values in mnt_ns_release()

When calling in listmount() mnt_ns_release() may be passed a NULL
pointer. Handle that case gracefully.

Signed-off-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/namespace.c