mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-17 14:26:19 +08:00
Update to FreeBSD head 2018-06-01
Git mirror commit fb63610a69b0eb7f69a201ba05c4c1a7a2739cf9. Update #3472.
This commit is contained in:
@@ -222,9 +222,9 @@ uiomove_faultflag(void *cp, int n, struct uio *uio, int nofault)
|
||||
int error;
|
||||
#endif /* __rtems__ */
|
||||
|
||||
error = 0;
|
||||
|
||||
#ifndef __rtems__
|
||||
save = error = 0;
|
||||
|
||||
KASSERT(uio->uio_rw == UIO_READ || uio->uio_rw == UIO_WRITE,
|
||||
("uiomove: mode"));
|
||||
KASSERT(uio->uio_segflg != UIO_USERSPACE || uio->uio_td == curthread,
|
||||
@@ -290,7 +290,7 @@ uiomove_faultflag(void *cp, int n, struct uio *uio, int nofault)
|
||||
}
|
||||
out:
|
||||
#ifndef __rtems__
|
||||
if (uio->uio_segflg == UIO_USERSPACE)
|
||||
if (save)
|
||||
curthread_pflags_restore(save);
|
||||
#endif /* __rtems__ */
|
||||
return (error);
|
||||
|
Reference in New Issue
Block a user