From nobody Mon Sep 30 04:45:40 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 4XH7mj3bmXz5XkLc; Mon, 30 Sep 2024 04:45:41 +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 4XH7mj1NF0z4Fnl; Mon, 30 Sep 2024 04:45:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671541; 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=Qw2VGB7ZG+WK4byvf5gqomghVH97Ksm9T78Mb1WbE+4=; b=YNbBG3bWdIj8RjZn92XPRgkgx1GSmeZMenKRwDm9Vsy5WAtIyukDWCr0Msk35zEDaS4xV/ M5GZ/IYHKwYvvawGrSI9GXkjmDLTqqSxWvhyMEOYdnEXifuuCnAlE4n+SB3iFsU8b2S1XK WIqOuqron4fbdd4CX94qnOe40fU3twMUyVQcLSvH2m7v2VaSdSX4NSPmxOkklz7heLwMD9 GJZ6cpn0PNr/UxFVSPBWOUBU1UJCEbWvY/I8dsJBhCGqEjj03sL8JUYqvn4M+LBLHV8znY cnD2m5KF5p2tVA2cfU3EsS5vUrw3mHud3ZFTNOiqPTZU/QbYTJOTzSknX/AQXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671541; 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=Qw2VGB7ZG+WK4byvf5gqomghVH97Ksm9T78Mb1WbE+4=; b=j67x7I6MioIbxM9l/eD0iUblI8f6LiWJ5uR68n5929pGM34B6VvzGpV3RJk/eKqm7rdw+0 Y2ModmM6yErbPHrqYHtivcw5hZwhNpe2NiK54w2sQ0FJvSBsfrF9sWYErW0ls4ji1TJxiy x8wRUrAujH3izmlWQ7COtlNh6nrQitPwwk9py7PqUrFnDETnz2TBhyf/s482/Pq1n1ivQb xtMqD4dFZsfR7Lr3DfYXU892djlYny59kOtNyb4z55YnTraqR2Ors+oK/DaPa2R/tL4ZM9 Lxh0NIA/bD1mmaj3SG3ASKxdz47GQ/1fX4a6JBBrjsbCa7OpNeHjVHOI2Qcl2A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727671541; a=rsa-sha256; cv=none; b=wzDUCpR+hG8/sDIGZwJY8lFeX7EiBZo7VV4exHd6z2LnmtDCljzPZ0GXCFn9rAoK8SE1BK B1c6kGyIHOVxqluE7enjrLp/0hFFFau22X60O1WVOxtu+MlA49RUeZm9VudtAcGK7lawPn ebV1oakZXq7LYTu05eSwPb1Vb+IZoZKBGY9gTM+9ZjT5YHgI5X4pGYBpstamu4bPUeO/H0 nMiQp8TYf8vUwZloXggQ+RsItyPw4Qs1Nq6vosL526WpKTRDrNWi08ybfg2LG3kQaM22Be 5Qed1hJzeR6blTMmlpcHnpknt0bl6V6usVNqfgxxadpu3MNgWkPwQeug6g3F1g== 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 4XH7mj02ZfzfFw; Mon, 30 Sep 2024 04:45:41 +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 48U4jeYO087641; Mon, 30 Sep 2024 04:45:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48U4jeYd087638; Mon, 30 Sep 2024 04:45:40 GMT (envelope-from git) Date: Mon, 30 Sep 2024 04:45:40 GMT Message-Id: <202409300445.48U4jeYd087638@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: ec68da0a7e6e - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: ec68da0a7e6e8041672f515a6d09fe43ce8838a1 Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=ec68da0a7e6e8041672f515a6d09fe43ce8838a1 commit ec68da0a7e6e8041672f515a6d09fe43ce8838a1 Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:30 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-30 04:44:23 +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) --- 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 */