aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-05-30 17:14:02 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-05-30 17:19:31 +0000
commit284cf3f18b5395e29e128702d50342d706813773 (patch)
treed665a0a084b66545387345b23082f0c9025c7dcb
parentb03a41befeaf17ef25da96fc7bc2dc19c9a6b253 (diff)
downloadsrc-284cf3f18b5395e29e128702d50342d706813773.tar.gz
src-284cf3f18b5395e29e128702d50342d706813773.zip
ext2: add missing uio_td initialization to ext2_htree_append_block
Reported by: pho
-rw-r--r--sys/fs/ext2fs/ext2_htree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/fs/ext2fs/ext2_htree.c b/sys/fs/ext2fs/ext2_htree.c
index 44120940236a..84f3d26d252a 100644
--- a/sys/fs/ext2fs/ext2_htree.c
+++ b/sys/fs/ext2fs/ext2_htree.c
@@ -439,6 +439,7 @@ ext2_htree_append_block(struct vnode *vp, char *data,
auio.uio_iovcnt = 1;
auio.uio_rw = UIO_WRITE;
auio.uio_segflg = UIO_SYSSPACE;
+ auio.uio_td = NULL;
error = VOP_WRITE(vp, &auio, IO_SYNC, cnp->cn_cred);
if (!error)
dp->i_size = newsize;