From: Andreas Gruenbacher Date: Thu, 29 Sep 2016 15:48:30 +0000 (+0200) Subject: xattr: Remove unnecessary NULL attribute name check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5d18cbf16cfb0ad65368fe2ead19237305f4b822;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Al Viro --- diff --git a/fs/xattr.c b/fs/xattr.c index c243905835ab..1f72c9217398 100644 --- a/fs/xattr.c +++ b/fs/xattr.c @@ -675,9 +675,6 @@ xattr_resolve_name(const struct xattr_handler **handlers, const char **name) { const struct xattr_handler *handler; - if (!*name) - return ERR_PTR(-EINVAL); - for_each_xattr_handler(handlers, handler) { const char *n;