mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 00:26:47 +07:00
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>
This commit is contained in:
parent
79f2280b9b
commit
4df28c64e4
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user