]> Gentwo Git Trees - linux/.git/commit
do_new_mount_fc(): use __free() to deal with dropping mnt on failure
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 22 Aug 2025 02:43:32 +0000 (22:43 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 2 Sep 2025 23:35:59 +0000 (19:35 -0400)
commit308a022f41bd3f12ceeda34f6d36bf8f2601d9ae
treecbccff1716dec56315c6f5470b56a6eff8e1728e
parent9bf5d488529b9efa01bd292633482acd10277b90
do_new_mount_fc(): use __free() to deal with dropping mnt on failure

do_add_mount() consumes vfsmount on success; just follow it with
conditional retain_and_null_ptr() on success and we can switch
to __free() for mnt and be done with that - unlock_mount() is
in the very end.

Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namespace.c