]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
do_filp_open(): DTRT when getting ERR_PTR() as pathname
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 25 Sep 2025 21:02:28 +0000 (17:02 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 13 Jan 2026 20:18:07 +0000 (15:18 -0500)
commit2e2d64aea5c59ba976fced4bf44832ea425a3f3f
treed468d49b6cd7692c656ee1c009006634ed5ddb41
parentba33ac100d3feb1efb43b32e63cc0c6430936aa3
do_filp_open(): DTRT when getting ERR_PTR() as pathname

The rest of the set_nameidata() callers treat IS_ERR(pathname) as
"bail out immediately with PTR_ERR(pathname) as error".  Makes
life simpler for callers; do_filp_open() is the only exception
and its callers would also benefit from such calling conventions
change.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/namei.c