From nobody Tue Oct 06 07:51:05 2026 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 4hzT2y2QMCz6cWH8 for ; Tue, 06 Oct 2026 07:51:06 +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 "YR2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4hzT2x6MWtz4GDW for ; Tue, 06 Oct 2026 07:51:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1791273065; 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=wKcSm9VKeS0hBv1j586gIQwTgupA0SsX30IK3e5U5kw=; b=FradapDwjS5r1QGwjhko5tadI+X36TBl/3ptbbI8DYxYa0uKZQTzI4dLivgxflXohWaghD 8HWzZ/ueRdUSNBsWoKane2m3KUp+EfUWAoZtDQT7dv2QqJrRUEHMZc66tGDn0+spxaX89E 2nGzjMejy1vk4QCy4OVcNBVcIWiYrl9qWDlsNUiDikLtMMz7yHvTR71KHCNfqEMDPVVO3n 4/nlG6wGyrdhyRvQWSoF8c88xCld1DfZS1JAVvQJKoe86yF8MdHADSjTP5BoxmOk3Cky2u HWjUJ4kHqmAJVq45u7jhaIhuVYIqHOou7MSqvv6QqTxT8Et5Y2PBECPNoZtk+w== ARC-Seal: i=1; a=rsa-sha256; d=freebsd.org; s=dkim; cv=none; t=1791273065; b=p+aoVJ/2+ffaVl7WXnZ181eEsnodgEh9x9gdzc5CXkL73Ffnv1XFcBT+NOculdX6gAqczC PQi0L1T7pbNto73NTuk8nRDUkb3RQzlrWGyv0Dry+LbW0Br+DqYKwZJCamS6mM3iHCFm9A Hmiy0x+n30FlUPmw1Ppp8QNVwhHAdTgx1sU3+KLfHo/HgeX76hoVeT9eICoGyVia49i8Wj wOIeJEMJ5wioA9e3b+gf7ZfO84VqkszarW7cBS3EHgvQ1jIfvTyPZjYv1BpHPDcEan/QSA lwmMN51esGGTt+qVV1JPcKNyRIYz+IjQXe1oZKMwvgSAwb1AIkpNAfIFuHZ0XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1791273065; 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=wKcSm9VKeS0hBv1j586gIQwTgupA0SsX30IK3e5U5kw=; b=lBWFW0Q4pvQPljIX3CxuBWjwb3B6fNarQydrqUnILQwjidYxR35zXZaqiHtZUpQMqpD3yN NyGw1U8cY98l7hKR1lN6XjscY8Is+TbMhSVTy3VYZFq7YK3VzDi1CdNFLtz7+TiVudcQVz toAn1Hd0Q3E7SG7BqVfVHNQ0bAsKZ5/2xcvV0CaUZOqoj/yLtIjLok1fcafFt5bgg2+N7Q atrJ2Ii3eYURkSM2aaiZw5cvB9J6sJoYCw49izpIlci10D4gBLN9offut0IZNp+WFD3f4P kAzplD/8owYLL6EK/LiX8vRFMJoyRSre7RzitoezGzr4VO3U16eMhG86lUY71A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4hzT2x5Q95zxKR for ; Tue, 06 Oct 2026 07:51:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1872d by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Tue, 06 Oct 2026 07:51:05 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Jaeyoon Choi Subject: git: ad33bd6f67a9 - stable/15 - ufshci: free the lookup path when the periph search times out 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jaeyoon X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: ad33bd6f67a906e26e96aaf7cfb3448038bc9647 Auto-Submitted: auto-generated Date: Tue, 06 Oct 2026 07:51:05 +0000 Message-Id: <6ac4a869.1872d.32456ebd@gitrepo.freebsd.org> The branch stable/15 has been updated by jaeyoon: URL: https://cgit.FreeBSD.org/src/commit/?id=ad33bd6f67a906e26e96aaf7cfb3448038bc9647 commit ad33bd6f67a906e26e96aaf7cfb3448038bc9647 Author: Jaeyoon Choi AuthorDate: 2026-08-10 01:37:00 +0000 Commit: Jaeyoon Choi CommitDate: 2026-10-06 06:27:55 +0000 ufshci: free the lookup path when the periph search times out ufshci_sim_find_periph() freed the lookup path only when it found the periph. The timeout path returned without freeing it and leaked the path. Free the path at the single exit instead. Sponsored by: Samsung Electronics Reviewed by: imp (mentor) Differential Revision: https://reviews.freebsd.org/D58657 (cherry picked from commit 607189d789ac37fac03025cbf7dfb0d243b7c49e) --- sys/dev/ufshci/ufshci_sim.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/ufshci/ufshci_sim.c b/sys/dev/ufshci/ufshci_sim.c index 234ee3bf7dfa..148840123d13 100644 --- a/sys/dev/ufshci/ufshci_sim.c +++ b/sys/dev/ufshci/ufshci_sim.c @@ -448,10 +448,8 @@ ufshci_sim_find_periph(struct ufshci_controller *ctrlr, uint8_t wlun) periph = cam_periph_find(path, "pass"); xpt_path_unlock(path); - if (periph) { - xpt_free_path(path); + if (periph) break; - } if (timeout - ticks < 0) { ufshci_printf(ctrlr, @@ -462,6 +460,8 @@ ufshci_sim_find_periph(struct ufshci_controller *ctrlr, uint8_t wlun) pause_sbt("ufshci_find_periph", ustosbt(100), 0, C_PREL(1)); } + xpt_free_path(path); + return periph; }