git: 20004b265add - stable/12 - fusefs: fix an undefined variable access
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 20 Aug 2022 01:19:15 UTC
The branch stable/12 has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=20004b265add4425851a0ee3bbef0139b0baae6d commit 20004b265add4425851a0ee3bbef0139b0baae6d Author: Alan Somers <asomers@FreeBSD.org> AuthorDate: 2022-05-05 14:43:51 +0000 Commit: Alan Somers <asomers@FreeBSD.org> CommitDate: 2022-08-20 01:17:29 +0000 fusefs: fix an undefined variable access In an error path, a dtrace probe could access an undefined variable. Reported by: Coverity (CID 1471986) Sponsored by: Axcient (cherry picked from commit dcfa054216ef8dfebed9c7c06c066bce0098bd94) --- sys/fs/fuse/fuse_internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/fs/fuse/fuse_internal.c b/sys/fs/fuse/fuse_internal.c index 664931598fc8..cb5f29fd1851 100644 --- a/sys/fs/fuse/fuse_internal.c +++ b/sys/fs/fuse/fuse_internal.c @@ -1007,7 +1007,7 @@ fuse_internal_init_callback(struct fuse_ticket *tick, struct uio *uio) { int err = 0; struct fuse_data *data = tick->tk_data; - struct fuse_init_out *fiio; + struct fuse_init_out *fiio = NULL; if ((err = tick->tk_aw_ohead.error)) { goto out;