From nobody Fri Apr 24 15:29:01 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 4g2H1T5yxrz6bSJn for ; Fri, 24 Apr 2026 15:29:01 +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 4g2H1T3jRQz3Cqm for ; Fri, 24 Apr 2026 15:29:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1777044541; 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=VlwuS22L42TwDlvkA2FCb6jld37QvnlwHZmh8oY8RyE=; b=s4RXeQchAJCd+DJ2rz1wBDUeVKaUkUSba0ZarabxCmVDiLHAW8bzIQNm5DyajqZekoxWLh XfUiZCH8eYaYDho0I2cfUPeKkHk/jQD0+bi1wabaiTlfKO/Qbkw0erJ/xHUwr9ZeaYBqTV flo73eXmylb9TvI5dfadBuqK9LZJrkBWGED/G4Z8ibHIWwXc7e5BX/21/XQ235JWHRAcOl hhnaEjz3n1OK/sC/j8BVIwEMRS+BUt08DruBT4y7LoVvtEo2XZcVmmuQt4st6HvE0g2uHK XbFA8ukQ3aSQN7l+vbjMGZCG7vLhCqUkUUOSRjqEAMF0aquHK/bg0nxgONPExQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1777044541; a=rsa-sha256; cv=none; b=DKcjHvUxSus7doaKCCoWk3PXANFls2NsVskUBrHMwaGViyhVWY8m2XSbCnGeyNcyBBzhfc NVyghPkctN1kjmIt5B0u7wDZ7DeO3KQpy2+oQHO+kpG4gJXwT+yFIKngLUwB0Ruxarkdgn p3U0t/pwxFmLjFa+2VHFU38jxtg8rHobpevvl/AJmrMuJ3TkEIuo0yPW8GLOy09akqb80z a6uzoiQZ7QKqAPhlZR5qXxYVM9TemM+M1shStYRGm6iUtACcIPWWYyhgKWrZHOJO95oyEF lgpfRN4f1m4K5yiRPu5qPD/trdrnW/KZ996sKVFh36M8w2PRMcoGVY81qhF1Hw== 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=1777044541; 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=VlwuS22L42TwDlvkA2FCb6jld37QvnlwHZmh8oY8RyE=; b=EcRaGRPAUZK/hNQhVKkTBJSczPW0e5tXvRnOrUBuj4s0JUDR6fEypocKF5oXrA24i0Z2lD 0owKjkV4A1jTSlzfWi122bQJtm8PQkFVls71n3wuBSiwiiSYqUad8Ezp+BHwi1gTC/Cm/B K/LOO4RK7xfCz/VvLVSt+tiwvMTkr6ZVLiHyM6KiN4JTlbXDx7DF9HrjuqnvRNyZ/O0/Qa sqWDy66jubaGu2i8Q4UdFKgW8OmwJ4kri8tCvpCG5Q4iHZz5Po9OlRwcc+GFyaqF8i67If LZ4Q9jdUtCDEN2Ee9j/wxCgBAI2+Hufti86ltggCH5s+3aSyU/5REVSbSC03Bg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4g2H1T3DBNz17RJ for ; Fri, 24 Apr 2026 15:29:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 361dc by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Fri, 24 Apr 2026 15:29:01 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: 5c373870e9d6 - stable/15 - acpi: Use M_WAITOK in acpi_register_ioctl 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 5c373870e9d69fb057ac8c551bb4299f8e277c23 Auto-Submitted: auto-generated Date: Fri, 24 Apr 2026 15:29:01 +0000 Message-Id: <69eb8c3d.361dc.7d2581e7@gitrepo.freebsd.org> The branch stable/15 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=5c373870e9d69fb057ac8c551bb4299f8e277c23 commit 5c373870e9d69fb057ac8c551bb4299f8e277c23 Author: John Baldwin AuthorDate: 2025-12-26 15:36:48 +0000 Commit: John Baldwin CommitDate: 2026-04-24 15:26:38 +0000 acpi: Use M_WAITOK in acpi_register_ioctl This function is only called from device attach routines which can sleep. Reviewed by: imp Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D54312 (cherry picked from commit 425b41f81634fd5a8f7d038191560040d1d4d32c) --- sys/dev/acpica/acpi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/acpica/acpi.c b/sys/dev/acpica/acpi.c index 47c8ae1d1d6b..ce202bb60167 100644 --- a/sys/dev/acpica/acpi.c +++ b/sys/dev/acpica/acpi.c @@ -4111,8 +4111,7 @@ acpi_register_ioctl(u_long cmd, acpi_ioctl_fn fn, void *arg) { struct acpi_ioctl_hook *hp, *thp; - if ((hp = malloc(sizeof(*hp), M_ACPIDEV, M_NOWAIT)) == NULL) - return (ENOMEM); + hp = malloc(sizeof(*hp), M_ACPIDEV, M_WAITOK); hp->cmd = cmd; hp->fn = fn; hp->arg = arg;