use uiomove return value instead of always returning 0 when doing a
readlink of a fast link Noticed by: Coverity Prevent analysis tool Reviewed by: phk
This commit is contained in:
parent
9c0fda722d
commit
d5bbad8372
@ -1903,8 +1903,7 @@ ufs_readlink(ap)
|
||||
isize = ip->i_size;
|
||||
if ((isize < vp->v_mount->mnt_maxsymlinklen) ||
|
||||
DIP(ip, i_blocks) == 0) { /* XXX - for old fastlink support */
|
||||
uiomove(SHORTLINK(ip), isize, ap->a_uio);
|
||||
return (0);
|
||||
return (uiomove(SHORTLINK(ip), isize, ap->a_uio));
|
||||
}
|
||||
return (VOP_READ(vp, ap->a_uio, 0, ap->a_cred));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user