aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/freebsd32/freebsd32_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/compat/freebsd32/freebsd32_misc.c')
-rw-r--r--sys/compat/freebsd32/freebsd32_misc.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c
index 83fd67f5e03d..59809d8fb41b 100644
--- a/sys/compat/freebsd32/freebsd32_misc.c
+++ b/sys/compat/freebsd32/freebsd32_misc.c
@@ -2639,8 +2639,7 @@ freebsd32_nmount(struct thread *td,
} */ *uap)
{
struct uio *auio;
- struct iovec *iov;
- int error, k;
+ int error;
AUDIT_ARG(fflags, uap->flags);
@@ -2662,14 +2661,8 @@ freebsd32_nmount(struct thread *td,
error = freebsd32_copyinuio(uap->iovp, uap->iovcnt, &auio);
if (error)
return (error);
- for (iov = auio->uio_iov, k = 0; k < uap->iovcnt; ++k, ++iov) {
- if (iov->iov_len > MMAXOPTIONLEN) {
- free(auio, M_IOV);
- return (EINVAL);
- }
- }
-
error = vfs_donmount(td, uap->flags, auio);
+
free(auio, M_IOV);
return error;
}