file_setattr(): filename_lookup() accepts ERR_PTR() as filename

no need to check it in the caller

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
master
Al Viro 2025-10-31 01:03:58 -04:00
parent 58a49cc9eb
commit def2a02a4c
1 changed files with 0 additions and 3 deletions

View File

@ -459,9 +459,6 @@ SYSCALL_DEFINE5(file_setattr, int, dfd, const char __user *, filename,
return error;
name = getname_maybe_null(filename, at_flags);
if (IS_ERR(name))
return PTR_ERR(name);
if (!name && dfd >= 0) {
CLASS(fd, f)(dfd);
if (fd_empty(f))