git: dcfa054216ef - main - fusefs: fix an undefined variable access
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 05 May 2022 14:45:33 UTC
The branch main has been updated by asomers:
URL: https://cgit.FreeBSD.org/src/commit/?id=dcfa054216ef8dfebed9c7c06c066bce0098bd94
commit dcfa054216ef8dfebed9c7c06c066bce0098bd94
Author: Alan Somers <asomers@FreeBSD.org>
AuthorDate: 2022-05-05 14:43:51 +0000
Commit: Alan Somers <asomers@FreeBSD.org>
CommitDate: 2022-05-05 14:43:51 +0000
fusefs: fix an undefined variable access
In an error path, a dtrace probe could access an undefined variable.
Reported by: Coverity (CID 1471986)
MFC after: 2 weeks
Sponsored by: Axcient
---
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 503c1c3c0b66..6ac7b4432e23 100644
--- a/sys/fs/fuse/fuse_internal.c
+++ b/sys/fs/fuse/fuse_internal.c
@@ -981,7 +981,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;