aboutsummaryrefslogtreecommitdiff
path: root/sys/fs
diff options
context:
space:
mode:
authorAlan Somers <asomers@FreeBSD.org>2022-05-05 14:43:51 +0000
committerAlan Somers <asomers@FreeBSD.org>2022-05-05 14:43:51 +0000
commitdcfa054216ef8dfebed9c7c06c066bce0098bd94 (patch)
treed4271cb69a70d8008e2340d5abff6bff21a58cd9 /sys/fs
parent0aef8628458a7d03e3c7e63ae05e228191167eec (diff)
downloadsrc-dcfa054216ef8dfebed9c7c06c066bce0098bd94.tar.gz
src-dcfa054216ef8dfebed9c7c06c066bce0098bd94.zip
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
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/fuse/fuse_internal.c2
1 files changed, 1 insertions, 1 deletions
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;