diff options
author | sam <sam@FreeBSD.org> | 2005-02-27 18:58:31 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2005-02-27 18:58:31 +0000 |
commit | 3d8ba815287eb894cfbc8cee0ddddc3ceeb1fb4e (patch) | |
tree | 4662489fb9b71cbe3ecaf00a1edcd212c63de31e /sys | |
parent | 06a3f4ae0c7b41c9ec9390307a8a9dabf82ae972 (diff) | |
download | FreeBSD-src-3d8ba815287eb894cfbc8cee0ddddc3ceeb1fb4e.zip FreeBSD-src-3d8ba815287eb894cfbc8cee0ddddc3ceeb1fb4e.tar.gz |
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
Diffstat (limited to 'sys')
-rw-r--r-- | sys/ufs/ufs/ufs_vnops.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c index 37a3a41..05e9333 100644 --- a/sys/ufs/ufs/ufs_vnops.c +++ b/sys/ufs/ufs/ufs_vnops.c @@ -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)); } |