Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108577955
D43160.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
675 B
Referenced Files
None
Subscribers
None
D43160.diff
View Options
diff --git a/sys/fs/nfs/nfs_commonsubs.c b/sys/fs/nfs/nfs_commonsubs.c
--- a/sys/fs/nfs/nfs_commonsubs.c
+++ b/sys/fs/nfs/nfs_commonsubs.c
@@ -679,17 +679,13 @@
("len %d, corrupted mbuf?", len));
}
xfer = (left > len) ? len : left;
-#ifdef notdef
- /* Not Yet.. */
- if (uiop->uio_iov->iov_op != NULL)
- (*(uiop->uio_iov->iov_op))
- (mbufcp, uiocp, xfer);
- else
-#endif
if (uiop->uio_segflg == UIO_SYSSPACE)
NFSBCOPY(mbufcp, uiocp, xfer);
- else
- copyout(mbufcp, uiocp, xfer);
+ else {
+ error = copyout(mbufcp, uiocp, xfer);
+ if (error != 0)
+ goto out;
+ }
left -= xfer;
len -= xfer;
mbufcp += xfer;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 27, 1:37 PM (5 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16197571
Default Alt Text
D43160.diff (675 B)
Attached To
Mode
D43160: Fix a call to copyout() so that it checks for an error return
Attached
Detach File
Event Timeline
Log In to Comment