From nobody Tue Sep 03 10:26:46 2024 X-Original-To: dev-commits-src-main@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 4Wyhck6nTlz5MkJT; Tue, 03 Sep 2024 10:26:46 +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 4Wyhck67btz4rkX; Tue, 3 Sep 2024 10:26:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725359206; 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=ZKBNWY4sA/RHucHULsNjttc3Tt4PyrIDZrkhwHbl6ZM=; b=SFRxudQJFCFGA3vQse5wlSgRe4KuP4unyzgVVtP8BPoZx9IMfA5GXCnekj91T/kKyfFZ7i pW56W5lXlzKuyxHhAvh3lkASlJxWkB9+Iz2TGJLmIOfbHEE4y9DQDY72r9uPEAL7LVZ8F2 unsT4vLxNplPPtTkxjwINTWeb9K0OhehwiqcZpLa2w53esA3z9f2fEwv77PIC4Xd21ILfV YIRnq1rM9SRtMmv7RMXOL7kzYvEDEROJO5/CcUwrrRIDfeu4JI9c5+47tmETzpYgDEsl80 WRe43gMRxUU1VRQ20keUaEwdYV89bxnpQ2SNYFF4hD36UD0aM9vgbk/y83rv9w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725359206; a=rsa-sha256; cv=none; b=NsAuB+vS1Me9JzssBPlXKLPQoqTD3Zn7kPqSj4w1y62Gm+lxsF3kdu9Fn/5fgRbSKiA8d2 tTA0qruYPhFg4/RY5wIwm+jJch7mNBMmi4uIPxNPzC3yUZXKNBZFxd7QL02IRb7aL65dk3 3AfPa0neib74003pz/TlrT4jPvClHuxAQOicPUIRsItpzqxFQyRM9NVCfZMFg6DcW0tQAG fU3Ok7KwDvKEk7oX4jl9EDEJPORUviH1d7lVKn6A1DtA5r53VpDm9/IqblL1thDma6DkcJ WvsDS/gzcomj1ksPdewPFIKmvqLg0Q9Oeafk1el9icAsPUauWW0EPB27H9tRKQ== 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=1725359206; 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=ZKBNWY4sA/RHucHULsNjttc3Tt4PyrIDZrkhwHbl6ZM=; b=Y7k+6Cjf6qIv5+MrejCykm53bcN/kxJsaMf+DE2JOnOOAxNIJzSzqH1l2rF8rsX3/AMe23 llGIiKyuwriMtT37bB0NTt/jOcaqgX4pIYrE8jxACaJXyjR490FnxkNMhVp9uWaXzl+pzu FdoW11CpckrOGCBZunvZ3hGwkEor//7xeWgKXhBmWSpxJdKx4efTxrhg7pm4pCDezsTvrT eKnRjpTAFFzUQZXQpRtHVyxHi5jkP4LXD1sRkeuegs3r+kg/y2zijS3aA3+rK9oDN1Vgtf bgGM7HFmnAss5vIM7aV5wWwPBz7kWuQxn8p0Qaf+ea6vR89W8Ul/ZRTPdgJcgQ== 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 4Wyhck5lmGzcnC; Tue, 3 Sep 2024 10:26:46 +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 483AQkqo008857; Tue, 3 Sep 2024 10:26:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 483AQkq1008854; Tue, 3 Sep 2024 10:26:46 GMT (envelope-from git) Date: Tue, 3 Sep 2024 10:26:46 GMT Message-Id: <202409031026.483AQkq1008854@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: 8e6dd4185871 - main - ctl: Stop checking for failures from malloc(M_WAITOK) List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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: 8e6dd4185871cd9b785869178ab2191a0d6c0b53 Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=8e6dd4185871cd9b785869178ab2191a0d6c0b53 commit 8e6dd4185871cd9b785869178ab2191a0d6c0b53 Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:18 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-03 10:25:18 +0000 ctl: Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 --- sys/cam/ctl/ctl.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c index 845cffe77a5d..82420396aca1 100644 --- a/sys/cam/ctl/ctl.c +++ b/sys/cam/ctl/ctl.c @@ -2687,12 +2687,6 @@ ctl_ioctl(struct cdev *dev, u_long cmd, caddr_t addr, int flag, } entries = malloc(ooa_hdr->alloc_len, M_CTL, M_WAITOK | M_ZERO); - if (entries == NULL) { - printf("%s: could not allocate %d bytes for OOA " - "dump\n", __func__, ooa_hdr->alloc_len); - retval = ENOMEM; - break; - } mtx_lock(&softc->ctl_lock); if ((ooa_hdr->flags & CTL_OOA_FLAG_ALL_LUNS) == 0 &&