Skip to content

Commit

Permalink
openzfs: Add a missing freeuio() call
Browse files Browse the repository at this point in the history
Fixes:	44ad7b1 ("Abstract UIO allocation and deallocation.")
  • Loading branch information
markjdb authored and bsdjhb committed Mar 18, 2024
1 parent 685d9da commit e68b116
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sys/contrib/openzfs/module/os/freebsd/spl/spl_uio.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ zfs_uiocopy(void *p, size_t n, zfs_uio_rw_t rw, zfs_uio_t *uio, size_t *cbytes)
error = vn_io_fault_uiomove(p, n, uio_clone);
*cbytes = zfs_uio_resid(uio) - uio_clone->uio_resid;
if (uio_clone != &small_uio_clone)
free(uio_clone, M_IOV);
freeuio(uio_clone);
return (error);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ zfs_uiocopy(void *p, size_t n, zfs_uio_rw_t rw, zfs_uio_t *uio, size_t *cbytes)
error = vn_io_fault_uiomove(p, n, uio_clone);
*cbytes = zfs_uio_resid(uio) - uio_clone->uio_resid;
if (uio_clone != &small_uio_clone)
free(uio_clone, M_IOV);
freeuio(uio_clone);
return (error);
}

Expand Down

0 comments on commit e68b116

Please sign in to comment.