]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fs: ensure that *path_locked*() helpers leave passed path pristine
authorChristian Brauner <brauner@kernel.org>
Tue, 15 Apr 2025 10:01:08 +0000 (12:01 +0200)
committerChristian Brauner <brauner@kernel.org>
Wed, 16 Apr 2025 07:33:09 +0000 (09:33 +0200)
commita681b7c17dd21d5aa0da391ceb27a2007ba970a4
tree5de50d71cf319e33ca3744713d2972e5b058c056
parentc86b300b1ea35959a6e2a63a6497226a6ea90b67
fs: ensure that *path_locked*() helpers leave passed path pristine

The functions currently leaving dangling pointers in the passed-in path
leading to hard to debug bugs in the long run. Ensure that the path is
left in pristine state just like we do in e.g., path_parentat() and
other helpers.

Link: https://lore.kernel.org/20250414-rennt-wimmeln-f186c3a780f1@brauner
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/namei.c