git: 02e2f4b7d72d - stable/13 - fusefs: fix an undefined variable access
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 23 May 2022 19:11:49 UTC
The branch stable/13 has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=02e2f4b7d72d46b7d2b47f6abde97c8b9b71c97c commit 02e2f4b7d72d46b7d2b47f6abde97c8b9b71c97c Author: Alan Somers <asomers@FreeBSD.org> AuthorDate: 2022-05-05 14:43:51 +0000 Commit: Alan Somers <asomers@FreeBSD.org> CommitDate: 2022-05-23 19:11:16 +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 3fac41bfaef7..b3bbf83d0033 100644 --- a/sys/fs/fuse/fuse_internal.c +++ b/sys/fs/fuse/fuse_internal.c @@ -982,7 +982,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;