From nobody Tue Jul 11 00:46:24 2023 X-Original-To: dev-commits-src-all@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 4R0Mcw6rwzz4dNXX; Tue, 11 Jul 2023 00:46:24 +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 4R0Mcw6RQ6z4FQs; Tue, 11 Jul 2023 00:46:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689036384; 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=zfYNp9sDXCbRUzFWcSEoR+ujx15D7XO0KfnDVoUW9uc=; b=jt/XNTFV/Nforee4LItMHj1uRS7L5vVszxbUx88GtP0o2h6lcWki+VLcIFoUwOHs6t7nYG nChbTEUeaDUefk/+rqILNpwOJSZxzRV+/D5g0dQ/2FptEv0kLZq0C3evrGqLWCW0X1NCq4 Ea1SlqvdJvdxZH7WbW3YhS1sFgKezdIc/dPMVQBxsXbgqrbX7zjeXGfdTQIyvfPSuzssIk 98hxXAN1qdyxarKq+SRs2BbzB1gpnRibLykmgQTN1xsyq4TpmgumNoxWnU4p/CRkWZ0yRL k3FL5ELVp/Myb+Do+VDvgIS/98z4YC2caz0/BhCu6CTd1EYF+dxEd/Noalok3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1689036384; 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=zfYNp9sDXCbRUzFWcSEoR+ujx15D7XO0KfnDVoUW9uc=; b=qnCjMrar909WmOOK3M0hTKWq9XLAZH6DNxqTwf8+2dyeMekIqEvspK6ZRiaWgq+bBzmWhL F+4+E74esEqNJh/E5U8h8nMX+nU4jZ1ctFZx2TRHcyZPFjTT+1kLyCKimYdmeYZCOnhUQr cP8xRhgtRbQFk77m+UTQKO8pWXKHCBo+NK39qWFqvPfv/OeDdauUlfQhM5uogxo1CBJdha 6FtwYRNZnhvm8NnKr2h4jeUWyHgBqAsECD42cD9Kk/lG0LLoJ10ix0fOaYIceYySMuekZW SSS77bWygJMT5O3dJeJxbpE/T7d5tu8elPL0ccJ/w7l7RMsQ6m/rEDrnPZAz+w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1689036384; a=rsa-sha256; cv=none; b=P/QvfFFAlj2gyFaxQ/LukLXqp04yUymPxMpS5TBmSSAN6Q5x3QysdiLGVXzr1Kd4SyHrNd 5QOUPt4rKx7WIkGAN0s5/MZiavxNe9pQC2xb+8jeeXKLKj4zgqqXeG6/ob99kMOn3tM8YX P+65ECzCwRRqqZjF+L/NJ/5/pcde2QxbRqS9DG6IJzPth+9+yM/lUAMGuGseLmA36bjV92 VcSs2IFyekWvEjtxYpmcFwT4Zeps2xq+oWcKcA0p/oTj5FytmJwCeayTPiH7ivw1zzFElq PqJKGYcIqYVjBr1RWfQldseDPejwh9ZsG5dVsq8l/k/WcAJJx1ZL6A1tQtdDtg== 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 4R0Mcw5GX6z15ZW; Tue, 11 Jul 2023 00:46:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 36B0kOGL082130; Tue, 11 Jul 2023 00:46:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 36B0kOdU082129; Tue, 11 Jul 2023 00:46:24 GMT (envelope-from git) Date: Tue, 11 Jul 2023 00:46:24 GMT Message-Id: <202307110046.36B0kOdU082129@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: e9162c32069e - stable/13 - vn_path_to_global_path_hardlink(): avoid freeing non-initialized pointer List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: e9162c32069e5276f5ec161dddaf6e45a27f5d67 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=e9162c32069e5276f5ec161dddaf6e45a27f5d67 commit e9162c32069e5276f5ec161dddaf6e45a27f5d67 Author: Konstantin Belousov AuthorDate: 2023-07-03 17:22:33 +0000 Commit: Konstantin Belousov CommitDate: 2023-07-11 00:46:02 +0000 vn_path_to_global_path_hardlink(): avoid freeing non-initialized pointer (cherry picked from commit d6b900c915c19ac1bb5d57659695fd143864be66) --- sys/kern/vfs_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index b9e07a2b8dcb..b20bce7572be 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -3851,7 +3851,7 @@ vn_path_to_global_path_hardlink(struct thread *td, struct vnode *vp, if (error != 0) { vrele(vp); - goto out; + return (error); } if (strlen(rpath) >= pathlen) {