From nobody Mon Sep 30 04:45:31 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 4XH7mX3gWqz5XkKs; Mon, 30 Sep 2024 04:45:32 +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 4XH7mX0MTzz4FKW; Mon, 30 Sep 2024 04:45:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671532; 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=DMepewXWptHS/0jEL9lhByCPEjwWPTlDLKpixj+ZpfI=; b=pSj9DmYh6H6vivYW+hgNai5k+lR9LghIbome2Y36fLHZiwYly3bSTgVnm+zUpG7IDAv8BH 15piDZ1nvMpziCphSh2T2VpLHLIRIOSDldybe1X7+lFLJWfzi863XbpjYbTmIZmXY/B7yh 8bP+m60krLuXZKnuOAhjgBbug9cs84isfZQ4XVE+7P023qy/eLPfG7ev9QfQn2hlTgVpFV PL6kMhs33tj/zXeCRCho5TrZg3B0bygYTTt8N2kTBV8AWM1dVu+57+QKHF+SWL8wXrwXmA z04wN2O3xUw1SejaCZegacdweYJe4QBYDttKfX2XyiRnk82erytGYPXnYFgbcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671532; 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=DMepewXWptHS/0jEL9lhByCPEjwWPTlDLKpixj+ZpfI=; b=Vg0ZtOu9G/sfn4SbAcppjvbgAQH9sYdwa/91Tc57RXN8tBcyR313xLFwqjwVRkovFphTVz vimOMcbFuXcawlmPIcrb82AeXgSQCEgVX+R9J5unUpA0/rBtxZg6LK5EvIB4fC7Xq6/MZr 2h1JSHZJvTLbsgcle2TpwFloVHDsvjfFLU9O26KjRJD3yCx+tBv5VRaiMQN8HDadaUI3Nm q3pC7K3OmI59BqXgjMzZQqahJRp6+XPqxBbnHoqiiqr8+iIaOumK+BA4RnZDVFYh7GSjWw KvOcUZPxAEi7+tKeEiZTGsFQ1Ao9t3BkqY14Mz+XYQzYzZVOf8HeEEa+hLULyw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727671532; a=rsa-sha256; cv=none; b=SNacDiCagbmySlIGWgsR2sXBmiHpg3p5pAYgZ2OC9Jtf+hCjF/FrTz3x/ufGCpLHMhcvLP H5GEUXwPyHcg4/xbALXpTWMD+QvFtdBGN5l5txGk0GwFWi8HGavY89zTy5KbHgFfK9C7Yw DRn9G8MMIrlA/9k4KaWwWj1MyOjRD4GRvFQytT6oKSOGMBCvUjLTbECkb6DpHjVWXRSG2J xAmWhfX7FojSnScLLZzcw4DQplbtW6g8MWCC0GXXB7XG+07r8BoxWCdVHPbJAY4kKbD0XK 1lSbi+K9990VSS8FgtNdpEbzReTWL0uYPkwWYb4zfXvyhyKGJDaMrhRQZMWmcg== 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 4XH7mW6Dr5zfbh; Mon, 30 Sep 2024 04:45:31 +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 48U4jV2r087229; Mon, 30 Sep 2024 04:45:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48U4jVH8087226; Mon, 30 Sep 2024 04:45:31 GMT (envelope-from git) Date: Mon, 30 Sep 2024 04:45:31 GMT Message-Id: <202409300445.48U4jVH8087226@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: 8c2d777a223d - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: 8c2d777a223d56d63c55552e8ca1d689f7c58b06 Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=8c2d777a223d56d63c55552e8ca1d689f7c58b06 commit 8c2d777a223d56d63c55552e8ca1d689f7c58b06 Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:26 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-30 04:44:21 +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) --- 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) {