mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-19 17:09:14 -05:00
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>
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user