aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-02-26 17:30:32 -0800
committerDarrick J. Wong <darrick.wong@oracle.com>2020-03-02 20:55:52 -0800
commit4df28c64e4388ac5fa59cd58f9fd6592aae533a2 (patch)
tree6df77ecb667b0f1f5fc412aeef54685c71cdd830
parentxfs: remove the name == NULL check from xfs_attr_args_init (diff)
downloadlinux-4df28c64e4388ac5fa59cd58f9fd6592aae533a2.tar.gz
linux-4df28c64e4388ac5fa59cd58f9fd6592aae533a2.zip
xfs: remove the MAXNAMELEN check from xfs_attr_args_init
All the callers already check the length when allocating the in-kernel xattrs buffers. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Chandan Rajendra <chandanrlinux@gmail.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
-rw-r--r--fs/xfs/libxfs/xfs_attr.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/xfs/libxfs/xfs_attr.c b/fs/xfs/libxfs/xfs_attr.c
index a968158b9bb1..f887d62e0956 100644
--- a/fs/xfs/libxfs/xfs_attr.c
+++ b/fs/xfs/libxfs/xfs_attr.c
@@ -72,9 +72,6 @@ xfs_attr_args_init(
args->flags = flags;
args->name = name;
args->namelen = namelen;
- if (args->namelen >= MAXNAMELEN)
- return -EFAULT; /* match IRIX behaviour */
-
args->hashval = xfs_da_hashname(args->name, args->namelen);
return 0;
}