Re: ksmbd: Use common error handling code in ksmbd_vfs_path_lookup()

From: Markus Elfring
Date: Sat Oct 04 2025 - 04:46:18 EST


…> - declare struct path path __free(path_-put) = {};
…> return_path->dentry = no_free_ptr(path.dentry);
> return_path->mnt = no_free_ptr(path.mnt);
> return 0;
>
> This is based on the pattern in kern_path_parent() and
> __start_removing_path().

Do you propose that affected software components may benefit more from
the application of scope-based resource management?
https://elixir.bootlin.com/linux/v6.17/source/include/linux/path.h#L22-L28

Regards,
Markus