From nobody Mon Sep 30 05:08:30 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 4XH8H30DGCz5Xlfy; Mon, 30 Sep 2024 05:08:31 +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 4XH8H26SqCz4XYl; Mon, 30 Sep 2024 05:08:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727672910; 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=DJREBRccXVS7g9UwdZUR4hXtoXs11eVJpKQHYYZsfTo=; b=ydDAa7VyNt9ssw8SqptIE3otHju11LDm7dA07zPihNhlqxTZAH9sOx20G1Pv0PWA3qOwrq orLTypa6cxNpZdP9RiWz+9dtLttbvLFrlUvpz++6EBwhDtnfFYB8OnRwsxWMuAMFko9hJK 3MZtqbYVujCZdRKQNjEqwC5WeOZx2m6abqMDH5b8pnHKk8R5wB2+IXLLAGCKI12XQAZpxr Z7lkQub68FRtm7pdCwGLkMt5zv+gnSdOi21JiKGYmAf4kpKOfIFpORUxNV1kMz0b2XAS9J sHuisJWhzm2f0K3jUuyHuuXNEkqKZOatnMHNXpzN7z9pHBRNzLJ5A49pFhI9Pg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727672910; 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=DJREBRccXVS7g9UwdZUR4hXtoXs11eVJpKQHYYZsfTo=; b=rBQMkwXFfvPCE3ArbMC3yafYNL9ziFcHEABELS+T44XpUsd08w06+/EXHzmkjneejflRBU XN7hGTrWrXHUu2FsF1OaqOHEMZ9wIR6f3xtAqXlL6IMmazRDvPBF0FzRFODHpudx7RmODp agRLR4JUHu5aKBfY945rlRCnKNiCRpO+wpdOfdQXXreB4wtCDbZqDZ93RlkN02/YdR5WtR QOu2wp2v2taP+ftFqsLp9dh6+q3qas/jByWCHgnUzm/pCTg9wMz7PSfnOErKq/oZTycoB2 9Qdhn/bQj+azY1hzJavGmfojptipDVm+9z/fvqvLEmnqHDeeNVY2tjnGDgcvAg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727672910; a=rsa-sha256; cv=none; b=y4IAgIloCnWAGhuqhP/mZsYwyLRpFzzKcl9LzlFeqjbFq6sAzrqkTvqNvszoJWDpThO2nx 1aXJfDs9ya6VGN2a71Yg1+drcwC6vRu++jnhRyRhHt57AdJdeKyhc2Cu3z3Ov6AtDTb0Fw SE6UMJ4D4rLfG0fPYNQ7B/peOTkPk3sB4ObC9edFQQ7aydFd5zRWHA14t3b0yFmO0WEFaB uH2tV2w7PCXfTCd8gIWuFirrBSAnrqvmNvszh9Tg7zWVyI181Kb/aP40D478xVK8bvGsEP rreVThsl6Tptpa9ROBHhG3na4pnn7Ezq1OpQtvz/G6gAsdAeIACPpJAWMesToQ== 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 4XH8H263txzftd; Mon, 30 Sep 2024 05:08:30 +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 48U58UfJ025364; Mon, 30 Sep 2024 05:08:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48U58URK025361; Mon, 30 Sep 2024 05:08:30 GMT (envelope-from git) Date: Mon, 30 Sep 2024 05:08:30 GMT Message-Id: <202409300508.48U58URK025361@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: 20805d47938b - stable/13 - iser(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: 20805d47938b9e3ae936b50d257fc2f40ad1081f Auto-Submitted: auto-generated The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=20805d47938b9e3ae936b50d257fc2f40ad1081f commit 20805d47938b9e3ae936b50d257fc2f40ad1081f Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:30 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-30 05:05:37 +0000 iser(4): Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 (cherry picked from commit 40a6bbc4284111790d9240f8a24ef11a9a9ecb07) (cherry picked from commit ec68da0a7e6e8041672f515a6d09fe43ce8838a1) --- sys/dev/iser/iser_verbs.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/sys/dev/iser/iser_verbs.c b/sys/dev/iser/iser_verbs.c index f5f057b961ef..f0c7e524ccf0 100644 --- a/sys/dev/iser/iser_verbs.c +++ b/sys/dev/iser/iser_verbs.c @@ -212,8 +212,6 @@ iser_create_device_ib_res(struct iser_device *device) device->comps = malloc(device->comps_used * sizeof(*device->comps), M_ISER_VERBS, M_WAITOK | M_ZERO); - if (!device->comps) - goto comps_err; max_cqe = min(ISER_MAX_CQ_LEN, ib_dev->attrs.max_cqe); @@ -280,7 +278,6 @@ cq_err: ib_dealloc_pd(device->pd); pd_err: free(device->comps, M_ISER_VERBS); -comps_err: ISER_ERR("failed to allocate an IB resource"); return (1); } @@ -343,11 +340,6 @@ iser_create_fastreg_desc(struct ib_device *ib_device, struct ib_pd *pd) int ret; desc = malloc(sizeof(*desc), M_ISER_VERBS, M_WAITOK | M_ZERO); - if (!desc) { - ISER_ERR("Failed to allocate a new fastreg descriptor"); - return (NULL); - } - ret = iser_alloc_reg_res(ib_device, pd, &desc->rsc); if (ret) { ISER_ERR("failed to allocate reg_resources"); @@ -509,9 +501,6 @@ iser_device_find_by_ib_device(struct rdma_cm_id *cma_id) goto inc_refcnt; device = malloc(sizeof *device, M_ISER_VERBS, M_WAITOK | M_ZERO); - if (device == NULL) - goto out; - /* assign this device to the device */ device->ib_device = cma_id->device; /* init the device and link it into ig device list */