|
@@ -143,7 +143,7 @@ xfs_readlink(
|
|
|
if (!pathlen)
|
|
|
goto out;
|
|
|
|
|
|
- if (pathlen < 0 || pathlen > MAXPATHLEN) {
|
|
|
+ if (pathlen < 0 || pathlen > XFS_SYMLINK_MAXLEN) {
|
|
|
xfs_alert(mp, "%s: inode (%llu) bad symlink length (%lld)",
|
|
|
__func__, (unsigned long long) ip->i_ino,
|
|
|
(long long) pathlen);
|
|
@@ -202,7 +202,7 @@ xfs_symlink(
|
|
|
* Check component lengths of the target path name.
|
|
|
*/
|
|
|
pathlen = strlen(target_path);
|
|
|
- if (pathlen >= MAXPATHLEN) /* total string too long */
|
|
|
+ if (pathlen >= XFS_SYMLINK_MAXLEN) /* total string too long */
|
|
|
return -ENAMETOOLONG;
|
|
|
|
|
|
udqp = gdqp = NULL;
|
|
@@ -559,7 +559,7 @@ xfs_inactive_symlink(
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
- if (pathlen < 0 || pathlen > MAXPATHLEN) {
|
|
|
+ if (pathlen < 0 || pathlen > XFS_SYMLINK_MAXLEN) {
|
|
|
xfs_alert(mp, "%s: inode (0x%llx) bad symlink length (%d)",
|
|
|
__func__, (unsigned long long)ip->i_ino, pathlen);
|
|
|
xfs_iunlock(ip, XFS_ILOCK_EXCL);
|