From nobody Thu Apr 23 13:01:19 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 4g1bnd0XwLz6ZgGW for ; Thu, 23 Apr 2026 13:01:25 +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 4g1bnc5HG4z3RWn for ; Thu, 23 Apr 2026 13:01:24 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1776949284; 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=ZAqWnjsDKgb5BJDFH72pVHlnkmXzNyEkVcobF9E3QFs=; b=mnThkhmRmwV8aXpjdSGewJASeXop5h2aBRh0lMVHbRm1fp1oWgjt/HU2p2CZAw8oJXLCdH SM0BL7o5OOJy6rodzozi9Ud8s1IihOJBNgQ7C6IhjUWgRdwQpgLyUiWl7xxNYVRzqUdCwM qcpb+p/GrDD3Fhi2mDmfIFNLMVR3m8jnoz1WLMKKfSyaXeDUN+WS6gFaiTXWf8EGO97ytL ckv0dIPSgDpkyqKmT2T4TqrK1usjb715szTMcIngQgC156kE/Xhy3D8tr/yQ3kAr5wlBYq hZN5AqIMPWICW396DlouGF2LnC28vL6tCFxc2WA93hD2ptw64YD0s+zdqRC/mw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1776949284; a=rsa-sha256; cv=none; b=K1cM1uah8hUX3y5T6EtHb2fhpYeYVIVb8znmfmROqPkA9UX4FhtwjMzmT5zha7NbRyKaIy LHJ1jD3uWcTzL1yJLcGCiJsbBX31JJJFWIJLY92JuUYmGXl2eWX8PnhlV/vBUvOutvcIUe oZrSPFsstQ0pDmWDy7nJ8poQZicwaZZFoTGcNJQfvnngCV27eqGYbm/n17qVkii/22JAHL yE0nkT0R82auyl+DSB2qROU/TglF81gUbIHwZcKsYtLSN2SGGLR+HKifLck49WCryhNPLA nd2i7fgoPB37yVv6Trdkk17ywcdtj5fypV9xZ3Hk69eRdRaQcNFCmvJqeMxPjA== 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=1776949284; 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=ZAqWnjsDKgb5BJDFH72pVHlnkmXzNyEkVcobF9E3QFs=; b=FCdYdzmZlO/rgB3xkyuTdlWDEtLCWblBEmtQy2SLwXT0dpbgUW1iOhplkIUtuSV7sT4Jvm fplSEAvCN5587xRhkO/DYvOuoz+JK0GYUfh/fNSPtLP79SNVLEiLlg6AQhBv/julpitRSt gTF0GDjm7mRjszmXctVlCjT0UlMiNx5Sx9y855TxTMyjmtVpgTVz/OlmoURkn9iQ1duUld c9wnl/hwYXrr7dZnVL8m97lUfe8I8Y30BL69MkD28ab9+cfLV+Qdd6wOwT4deT9tjXtquK hiDlHN6X+jJ4ZpRzsIxbuBD3QLAC4YlI/3Xv6naZGbgqOTVIZBKdUKskajT60Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4g1bnc47Dfz2rs for ; Thu, 23 Apr 2026 13:01:24 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1e190 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 23 Apr 2026 13:01:19 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Christos Margiolis Subject: git: aba2523261c1 - main - sound: Do not check for NULL before deleting ac97_info->methods 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: christos X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: aba2523261c1e541debe674c059c1ac16210fc04 Auto-Submitted: auto-generated Date: Thu, 23 Apr 2026 13:01:19 +0000 Message-Id: <69ea181f.1e190.32554c43@gitrepo.freebsd.org> The branch main has been updated by christos: URL: https://cgit.FreeBSD.org/src/commit/?id=aba2523261c1e541debe674c059c1ac16210fc04 commit aba2523261c1e541debe674c059c1ac16210fc04 Author: Christos Margiolis AuthorDate: 2026-04-18 10:33:58 +0000 Commit: Christos Margiolis CommitDate: 2026-04-23 12:59:52 +0000 sound: Do not check for NULL before deleting ac97_info->methods It is allocated with M_WAITOK in ac97_create(). Sponsored by: The FreeBSD Foundation MFC after: 1 week Pull Request: https://ron-dev.freebsd.org/FreeBSD/src/pulls/17 --- sys/dev/sound/pcm/ac97.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/sound/pcm/ac97.c b/sys/dev/sound/pcm/ac97.c index 73a1e0280e56..1407d202a0d1 100644 --- a/sys/dev/sound/pcm/ac97.c +++ b/sys/dev/sound/pcm/ac97.c @@ -835,8 +835,7 @@ void ac97_destroy(struct ac97_info *codec) { mtx_lock(&codec->lock); - if (codec->methods != NULL) - kobj_delete(codec->methods, M_AC97); + kobj_delete(codec->methods, M_AC97); mtx_destroy(&codec->lock); free(codec, M_AC97); }