From d5bbad837266f5a0943ebb3e29449c5ba90b2ae2 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Sun, 27 Feb 2005 18:58:31 +0000 Subject: [PATCH] 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 --- sys/ufs/ufs/ufs_vnops.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c index 37a3a41d6f79..05e9333036a2 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)); }