From nobody Mon Sep 30 05:08:22 2024 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 4XH8Gv2784z5Xlfm; Mon, 30 Sep 2024 05:08:23 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XH8Gt6Sr2z4X7m; Mon, 30 Sep 2024 05:08:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727672902; 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=CS3I/aSdTWay7xqz0dipQgPch4xxAEEWPIBtmmW+s6g=; b=j5QKQEffvDdOwMVVpzVBke3I7izOhETekHKBoxYVqMzAJufSW+tu5Py/3MPCgaumAFSjMv 7o6vIPEy0OQ50Ttw82mxyIOeZcjlSBL/gvsByU6c+SlxrM3VzUdYDIcMygbhS8LXLzjMtI L6gF12d87yWqYyKnuY/6wpNsxlGO44YO6IjCGcqDvaleir0uM7kZnrqOMMSx8y94aI5u/X Nmu3uHOgRS3AfU8biWTe8uLY/id9ELCHbiD9XCZnYZws31ct8zzqCI+Q1eLc66regeJAfm 0TpTMP/SuUBxIA1tyljTTqwsk7e5mwblVix+ALTe08f4fJChMWV5k9ytSbA+eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727672902; 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=CS3I/aSdTWay7xqz0dipQgPch4xxAEEWPIBtmmW+s6g=; b=AuqeJp0eXB0ViNMm/ZFscCndCicFHnx3W2E/4hrfAAKnBG/+QT9KgjlfG23G+FuUS75/O2 X8xGwTRuT1ACii6/WRp2siqg9ZyPr1DXhm0CTVwTWyQNVuPs7aW28FKMCVFqFMaZa7Cq1U rrH/LFIO8n69ZSfQfXWLQl0naNOLaO9mqMms9lS86BuJA/iHCn4TIdh2XMSkfVpBAEYDIc PCC6zoS15vWLKQRW9lT7hR3b6JUDH8ZfyeYhj9MWISnw9lLLAx7PrK9DvRSgQfZ19WZ5oG jmE+3u2zay8lCN80OVL0qJEXnK94uHVB8yv8BwW6xoxhAD0vO3VTYj1pDwogtw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727672902; a=rsa-sha256; cv=none; b=loSaUW4YSZOVe5qTt1qyXMfQ5HVNtF/FtJyk1KB1FWDeZRFFOuEJuk7G5BDxRTZvlOu0Dp 4tf2X6xwCyRIJNlplewtVKqpQBIVNQlKrBEOf0zYAfrPZQc8ElRFvg2xlD7GmV9L7DpHIw vdpKwUI7xA40Nl9TDpdXzZD4GoR4wbbq1iDGQ/9RpWGUspGKzMcNYOxbHFiF8wsACJvs8i SLAy7MpMaC5R7TgIBPf4Zh6+sN3iWY9AQdGQDLn8f4AkqdoXceQ+rPgOPjuFPXW6qG69IK r4hD7YklFfa39D2WoB08/PiGhol+0M5yLoOSzodStSEQZAWsmfr79hHxT8Twwg== 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 4XH8Gt63JVzfyw; Mon, 30 Sep 2024 05:08:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48U58MQ9025017; Mon, 30 Sep 2024 05:08:22 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48U58McD025014; Mon, 30 Sep 2024 05:08:22 GMT (envelope-from git) Date: Mon, 30 Sep 2024 05:08:22 GMT Message-Id: <202409300508.48U58McD025014@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: 568cb5592586 - stable/13 - ena(4): Stop checking for failures from malloc(M_WAITOK) 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: zlei X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 568cb55925868abe61d4f04e86128ab7312495b2 Auto-Submitted: auto-generated The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=568cb55925868abe61d4f04e86128ab7312495b2 commit 568cb55925868abe61d4f04e86128ab7312495b2 Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:26 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-30 05:05:35 +0000 ena(4): Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 (cherry picked from commit 51971340bd3ff41591adbbfca68e9e753f6eb135) (cherry picked from commit 8c2d777a223d56d63c55552e8ca1d689f7c58b06) --- sys/dev/ena/ena_rss.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/dev/ena/ena_rss.c b/sys/dev/ena/ena_rss.c index d90a7fbb253a..41fa9c62f94a 100644 --- a/sys/dev/ena/ena_rss.c +++ b/sys/dev/ena/ena_rss.c @@ -279,12 +279,9 @@ ena_rss_indir_init(struct ena_adapter *adapter) struct ena_indir *indir = adapter->rss_indir; int rc; - if (indir == NULL) { + if (indir == NULL) adapter->rss_indir = indir = malloc(sizeof(struct ena_indir), M_DEVBUF, M_WAITOK | M_ZERO); - if (indir == NULL) - return (ENOMEM); - } rc = ena_rss_indir_get(adapter, indir->table); if (rc != 0) {