From nobody Sat Aug 20 01:19:15 2022 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4M8gkq2kdtz4YkCB; Sat, 20 Aug 2022 01:19:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4M8gkq2D5jz49NW; Sat, 20 Aug 2022 01:19:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660958355; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=L4b/QJQxtT4z4An5XI7q7MwEa+QVEappR8Z6qWyl9Ig=; b=yGyqLXSGemFWm2NaeE4Sb630/Ipl1yPP52CYhQgnAUJaqJ2Efl1FUvX9l09+OeaO09U4+w dQiQJJdSPqJx4YIc3CtnzJ5XY0OvRMryr6v7iBBkrAk3vGHfiPzCOYGbA00fAsjp1pvCJk +4pDqhpSFm2cfC8T9YCbmvWd3TQ2cSzQKHsN8A6cSlH5EDEc0CnUwgpk3u6wBJ6mFvuMnf l67hO59hZXOYJPermGWUx5dEYTAq4rlef5UCjDFelGJYgbGbO51X1238UKGYDu4fy9XBaL uffH5yuSpiAENX+ArvnbnUIJfgaPJ2VDBkshdHCzJx+SfV0Pr+6sqMbJTko1gA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4M8gkq1Gz9z1CxH; Sat, 20 Aug 2022 01:19:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 27K1JFwi009782; Sat, 20 Aug 2022 01:19:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27K1JFet009781; Sat, 20 Aug 2022 01:19:15 GMT (envelope-from git) Date: Sat, 20 Aug 2022 01:19:15 GMT Message-Id: <202208200119.27K1JFet009781@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Alan Somers Subject: git: 20004b265add - stable/12 - fusefs: fix an undefined variable access List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: asomers X-Git-Repository: src X-Git-Refname: refs/heads/stable/12 X-Git-Reftype: branch X-Git-Commit: 20004b265add4425851a0ee3bbef0139b0baae6d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660958355; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=L4b/QJQxtT4z4An5XI7q7MwEa+QVEappR8Z6qWyl9Ig=; b=UQyVnMhU5Ofr6p17fH3dOS+3FF554XdNwaF7OmQ5ml6go0wzO1mNUVcBVV+q9lttvNNu89 JJe8P/lQRC7ShJEZeKyfCAerOoEHqhp17x5eWxB5L7lUFe4l9wIISdiMJtSiNozP00ssLi 5wfnELtW2I+v/xjV8WFKVE3QARtWZ8MiGJvFjep+TJQnuTo20wuOb/kxSU1uIA7SwIW/ld LCkgKrBexmmyTCvycxS//ZQdYkjObQfZlO7xBpZCDT5J7Mm5z9JheueFQlePKFUgygOSpV W342CpmXT2Y6U4JJDTwKPSGHoJdEmWJDN1yP/Tf6jm2HCN56cFAoDU7auA9SFA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660958355; a=rsa-sha256; cv=none; b=MGz97np0+nItFN6ggrUYNldaxXZtQrH5w6r50nJ5g5SE+UAWCQ4JIFHgdSCNDvF/uW2z5O 8X1eHaLiXXNwrFrYLCoTgXFEB4b+Y1COl3KJlypEvTgKi8KFpHbQmntW4oBGsaUxnY98De mbx+XN2Pz9zMyIArcFbT38B+ES+aLpl1j4O0/+Njglh91DrflbeSvJmVcSixJjQDxy4fDo HzNtRcYGYOGC+3LgBvxfnt79T0y++IEYC96deHc/4QMRGVtllcuE47iohxNhwH5BqbPFj5 rCBbO3h2nbioech/zmKSss+2PyQ6SrcAkPfY9HbY1R3fLU1C28wun9SNVLh2QA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=20004b265add4425851a0ee3bbef0139b0baae6d commit 20004b265add4425851a0ee3bbef0139b0baae6d Author: Alan Somers AuthorDate: 2022-05-05 14:43:51 +0000 Commit: Alan Somers 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;