From nobody Wed Jun 10 04:01:17 2026 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 4gZsXF4QvRz6gvdt for ; Wed, 10 Jun 2026 04:01:17 +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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gZsXF2mQ9z3wHm for ; Wed, 10 Jun 2026 04:01:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781064077; 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=PmoosWzOOGKDttX00zsJcp2tFzrmy/bNi0N62JkgB80=; b=BoE6gNpUg7ch1RTJc9w89Bq7t7IU8EMZ3xTa7N3mySOZCm6XrY7uSIAFLIK1tDoPcIaGVq IPjejHKEwF/wZuGvxHFxLizO7VDKgCS1xgYG4QO19Dt6ZvHI92Zd5j6fiipIOqrSJbLoLW GOWAtIx0URw8M4bYDJsXf1Or/j1bewwOxTmQS/nmq3qct+HZBuYCNmFcFUvqyxoKCN8id9 z3kPs3XSUtyBbJ4892pyN/CuEGrScwIMLQwh2d8AZAhXob+cjQ7Fv+40ObrjOAd205ciQD YZMj6TFo3/VJO2tb5tBPICK7RbWL3BWtItP6rSUxRmCfd3Y3r452wti9YPv90A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1781064077; a=rsa-sha256; cv=none; b=Qx2FCZL20Q3QDB15bmrGDClataODVuyHPraUBYx0N8yS4NFKTOhdaei1xVxB/MNWATtsmR 4qrOKeqHw4320Cn4sqXxkt7NEPWNGbw1WEBqH8Z7wk4ucEZkxegun8Pk5ySqiSK7JYICQq V2w+T9WR/VO2xcVDcBHzPvNN2DfZUVLCdvYCOMi4LifobCc49+tORMRpPR6RxyCnb/bahs EUiiZx0JjIYH7uR0Tp9uhuj+uXhPmNebFSmGt7a52PGMeA+eplCdCS9NXta9CzL7rtD9ot uwVS9TH1QlpvGlxOstL9IGgFNNDa9W84ebkhGfbrfRDDKuK9rSIhwiDE5XmN9g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781064077; 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=PmoosWzOOGKDttX00zsJcp2tFzrmy/bNi0N62JkgB80=; b=jm352aQZ06V1gRotz7cyuE5QZRJJ8LVUNS5OvSy6q4F0NLwXSX3UhC8eU0IElBMnA7hcMK N2azLwwrQI6f34yBt5NI9WIVtqkHYSxdJW6MfWgCBL/pCWIW/x0EgiDvthj7Pe2QkJHR0M YRFqrx/8nm4z0VfWSgCdBsuMJCLtC3F6UTuO3YafH4ipYabx4HQb422dydu6B/N0UapOEg PIuV0Xv5JB4cGDoE3BDs04ncx4UxnUx2ZC3dSxe+70wdF0xRBfKkNQZGStQ7zGBV4PoMta LC7FQNrHrIflr7v+D8uEiMTJPgbexivObhy6Oi7YrVxszZR83hj4/hD7YgXqZw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gZsXF2L3Lz14Pg for ; Wed, 10 Jun 2026 04:01:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 2733e by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 10 Jun 2026 04:01:17 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Kyle Evans Subject: git: a53d4b5b2a08 - stable/15 - kern: ofw: provide ofw_bus_destroy_iinfo to teardown interrupt-map 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: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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: kevans X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: a53d4b5b2a08e4de390f9800d69367078b8affcf Auto-Submitted: auto-generated Date: Wed, 10 Jun 2026 04:01:17 +0000 Message-Id: <6a28e18d.2733e.51898d05@gitrepo.freebsd.org> The branch stable/15 has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=a53d4b5b2a08e4de390f9800d69367078b8affcf commit a53d4b5b2a08e4de390f9800d69367078b8affcf Author: Kyle Evans AuthorDate: 2026-05-09 02:42:50 +0000 Commit: Kyle Evans CommitDate: 2026-06-10 04:00:37 +0000 kern: ofw: provide ofw_bus_destroy_iinfo to teardown interrupt-map For symmetry with ofw_bus_setup_iinfo, the next commits will use it to properly cleanup on failure in bcm2838_pci. Reviewed by: andrew (cherry picked from commit b230a7b9a52c0fc948f4f1dcd1225a94674073f6) --- sys/dev/ofw/ofw_bus_subr.c | 12 ++++++++++++ sys/dev/ofw/ofw_bus_subr.h | 1 + 2 files changed, 13 insertions(+) diff --git a/sys/dev/ofw/ofw_bus_subr.c b/sys/dev/ofw/ofw_bus_subr.c index b99d784929bc..8e7c60cdb98d 100644 --- a/sys/dev/ofw/ofw_bus_subr.c +++ b/sys/dev/ofw/ofw_bus_subr.c @@ -349,6 +349,18 @@ ofw_bus_setup_iinfo(phandle_t node, struct ofw_bus_iinfo *ii, int intrsz) } } +void +ofw_bus_destroy_iinfo(struct ofw_bus_iinfo *ii) +{ + + if (ii->opi_imapsz > 0) { + OF_prop_free(ii->opi_imapmsk); + ii->opi_imapsz = 0; + } + + OF_prop_free(ii->opi_imap); +} + int ofw_bus_lookup_imap(phandle_t node, struct ofw_bus_iinfo *ii, void *reg, int regsz, void *pintr, int pintrsz, void *mintr, int mintrsz, diff --git a/sys/dev/ofw/ofw_bus_subr.h b/sys/dev/ofw/ofw_bus_subr.h index 1a33d7655f77..2e13f29a67f6 100644 --- a/sys/dev/ofw/ofw_bus_subr.h +++ b/sys/dev/ofw/ofw_bus_subr.h @@ -86,6 +86,7 @@ bus_get_device_path_t ofw_bus_gen_get_device_path; /* Routines for processing firmware interrupt maps */ void ofw_bus_setup_iinfo(phandle_t, struct ofw_bus_iinfo *, int); +void ofw_bus_destroy_iinfo(struct ofw_bus_iinfo *); int ofw_bus_lookup_imap(phandle_t, struct ofw_bus_iinfo *, void *, int, void *, int, void *, int, phandle_t *); int ofw_bus_search_intrmap(void *, int, void *, int, void *, int, void *,