Skip to content

Commit

Permalink
Should pass uio_copy...
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxoko committed Jul 31, 2015
1 parent 811b9c1 commit 3e35f5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/zcommon/zfs_uio.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ uiocopy(void *p, size_t n, enum uio_rw rw, struct uio *uio, size_t *cbytes)
int ret;

(void) memcpy(&uio_copy, uio, sizeof (struct uio));
ret = uiomove(p, n, rw, uio);
ret = uiomove(p, n, rw, &uio_copy);
*cbytes = uio->uio_resid - uio_copy.uio_resid;
return (ret);
}
Expand Down

0 comments on commit 3e35f5a

Please sign in to comment.