Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xattr: Remove unnecessary NULL attribute name check

When NULL is passed to one of the xattr system calls as the attribute
name, copying that name from user space already fails with -EFAULT;
xattr_resolve_name is never called with a NULL attribute name.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>

authored by

Andreas Gruenbacher and committed by
Al Viro
5d18cbf1 08895a8b

-3
-3
fs/xattr.c
··· 675 675 { 676 676 const struct xattr_handler *handler; 677 677 678 - if (!*name) 679 - return ERR_PTR(-EINVAL); 680 - 681 678 for_each_xattr_handler(handlers, handler) { 682 679 const char *n; 683 680