From nobody Tue Sep 3 10:27:19 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 4WyhdN1SYlz5MkRh; Tue, 03 Sep 2024 10:27:20 +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 4WyhdM6sJFz4swd; Tue, 3 Sep 2024 10:27:19 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725359240; 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=EIQQ1knZPkQyUwNUnwWIcUuEP4QCZLA5R2sxiwAT8Lo=; b=VyJ/qrNBV4GN/wm/z5zIYOVyMExgK7+r8qwbKMErULYvY6FIaq6mNtSEuvGKAYSlxwS0EK As6iCA2o5KAixKVZPSj+avsq0TQCE07YuW6X5YyG/EuisfqlKXkcHjAiHOaYmWiB5pf6TX 9mMHbXNaE1SWQQvNB8XRwsIgLlYf2oNs6Q+QdbMZuHj5+gDTNUxMqLFXGHWUAGSfpoc9a5 BtX3qPBNW0Tb9ryxztcBy1jdf607AR+sUHa51jvcnbpJivs3KVXg5nOXhnISNHsow0GfuJ ZXLSz/NS0Yf2rhth1fUNlPwaB1G3p07+Ao49JFVlNFOeX/2RdGppHszX6DYSIw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725359240; a=rsa-sha256; cv=none; b=V7vdf12Q+moc+fxAT+D9UHaU1ZVUMiypcxss0nR2SvgT0MsOSMGU6Asil3waaaCuVWla7J pt7SG4E5DPoTBFZb363kNgWm7ctN+3LBA3aagm9ScUZlBBnXoN26EtHKpPhm1WiLvLDQaM p6TII7cf+5aNidHoGhLMt4zQ7IOpL8MxBJ161Zrb8ziQl6F3B/W/F8jIVu9Ii5teNVIVdQ JEWnfH0n8N/iYidNiovlTnZ1geeYQvXxKzZiJ3+1jPnZncFYTBiP8l/7RCYpkgjuA03ksh 6FgVVxe1ZsuarS8qaVlwwQvMNQvEr4Z9lNUYeuoSqtj5UTosWLwkL7lam+V65A== 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=1725359240; 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=EIQQ1knZPkQyUwNUnwWIcUuEP4QCZLA5R2sxiwAT8Lo=; b=wwC0bdp+Tnn2GYkFYfUcg1t2eQy+DkzVAoVlD1svBZ3b+ZNgOrvlwLI1a96BkUKiZEuVAr Q/xPOUbF3plG3MEEtdeQUrcmIFjkE2OWEK7jkYHx25mrEwoajyFL0afVLK9Awax1KadpKL 4ti0bEM7aqciTirBaMqdguyu4rLZLDeZtmsS4EKGrXyQbAa7acia9cq0QY/fu0DMd07l67 njKKT1g8XrNDLp9x+Uw7X6bw4Mi4yy+nXcAHgQZ1DiLBKMBPO2rmJ0SuXEsnrqLvrZ9K0/ yeEAaMfhdrnbWBi57NMR9xXQ4P1CR60LckzRjWmG6hz404QZrWSYFt/YNIJF4A== 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 4WyhdM6S9dzcb8; Tue, 3 Sep 2024 10:27:19 +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 483ARJnT010337; Tue, 3 Sep 2024 10:27:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 483ARJHs010334; Tue, 3 Sep 2024 10:27:19 GMT (envelope-from git) Date: Tue, 3 Sep 2024 10:27:19 GMT Message-Id: <202409031027.483ARJHs010334@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Zhenlei Huang Subject: git: 40a6bbc42841 - main - 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/main X-Git-Reftype: branch X-Git-Commit: 40a6bbc4284111790d9240f8a24ef11a9a9ecb07 Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=40a6bbc4284111790d9240f8a24ef11a9a9ecb07 commit 40a6bbc4284111790d9240f8a24ef11a9a9ecb07 Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:30 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-03 10:25:30 +0000 iser(4): Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 --- 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 */