git: 997332f9cda6 - stable/13 - ext2: add missing uio_td initialization to ext2_htree_append_block

Mateusz Guzik mjg at FreeBSD.org
Mon Jun 7 00:30:01 UTC 2021


The branch stable/13 has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=997332f9cda66d7c42d51daac92e6e8ca83ed7a0

commit 997332f9cda66d7c42d51daac92e6e8ca83ed7a0
Author:     Mateusz Guzik <mjg at FreeBSD.org>
AuthorDate: 2021-05-30 17:14:02 +0000
Commit:     Mateusz Guzik <mjg at FreeBSD.org>
CommitDate: 2021-06-07 00:29:49 +0000

    ext2: add missing uio_td initialization to ext2_htree_append_block
    
    Reported by:    pho
    
    (cherry picked from commit 284cf3f18b5395e29e128702d50342d706813773)
---
 sys/fs/ext2fs/ext2_htree.c | 1 +
 1 file changed, 1 insertion(+)

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;


More information about the dev-commits-src-all mailing list