From nobody Mon Sep 30 04:45:07 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 4XH7m40WQfz5XkK9; Mon, 30 Sep 2024 04:45:08 +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 4XH7m36ZNCz4DXp; Mon, 30 Sep 2024 04:45:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671507; 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=uHJp2Mi+0Lymgi3kOczBoKj+PtooZ2HRo8FSk7VNZ2w=; b=xVjdMCoJtSwiYjm9/PiBNfMiYO/0cE9tY+aAJuZNFyJpPK3ZuNUsE3/rEgltuSOQdQCpu0 j22QMMpiIFOyW8jiNaWkF1N9heZqL4prEHRl5t34jYFS1b86oX//XadU3/Ixt+Dosg2zwT 2bo9x+kE6ggyDWzVFXBiJGDu3LPvgfGC5/hZ7t2IBahVfMLwmZkFaUjndJvK9qOV0vmcFs xgX4XMfnR2eLanYAzjdp2tbPgO6Xx8J515wyki23rdZn3UgYw5+/0GIlceLXdoAhYPGXHO doirLyrWPnQKV+ZNkoh9xMRqW1RZCYwKcS+T8wMb3iHk0p7D1dio0Xz9dsbQ9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671507; 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=uHJp2Mi+0Lymgi3kOczBoKj+PtooZ2HRo8FSk7VNZ2w=; b=IIfoeALtY6m8tzKrweDCG0kU33VeoaoExchVJixkyFdKHQteHsA6yNmbd9g+xkvila9ErV o28qQAI2Yo3JDOXL9OopzaL5hDQL5E9R2rovQuLjPjLqX9F3/XHYeBIkbZiuoJDwaCCp6o hqZrMyw/gH0hNNEKkX/DlIF1rC5w2Ccr30PIIhBet4DUMJr9KGQ6/U+0P4XyrWOJxnQYTT JG0t2PscQb7pog9ELvVKoZh7OGjZOvcABps6iYm3PieNbj+RrepO0uoJtI3VsOe7X9bgPv Y5HugHmd5kO+c7Dqj2cptz1yTSFxzAJKyIgESFHQZB8+JvMwQ52m4Li6kjVnvg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727671507; a=rsa-sha256; cv=none; b=W2OXin20qkK+8QZyzyuOjxm75KniSZeCcxkJEtmMoFVkAf2yVglzJNK3a0fby81qfP/6ru ckDAvyj+MwA2FTZgf5Oqp+oPA1RhibeegZZtb0X8fILZiOZ5DFDbdJa5khbsjB6/kUoN7u OtBRvtcDUPE7eHo+JYMngSDT3JVvy5YvzBqqpyk9PLJoGWJmpQlXyDa85RKUdOTEwyg5KR 42+N7qdqwyHotASokasdnFg/8ph3Hh/gE3rYFr291nI23P7D3D/iaWHKXTd/vORK+S26YB zyttvo/jIIBqAL5j+unuqmUQ/ArhWzCHYNmA1SsPq+DMrP3713DOD7uNcH+7Pg== 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 4XH7m35pJDzfFp; Mon, 30 Sep 2024 04:45:07 +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 48U4j79a086164; Mon, 30 Sep 2024 04:45:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48U4j7Uj086161; Mon, 30 Sep 2024 04:45:07 GMT (envelope-from git) Date: Mon, 30 Sep 2024 04:45:07 GMT Message-Id: <202409300445.48U4j7Uj086161@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: d2d4758456aa - stable/14 - ctl: 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: d2d4758456aa89863ee615dbe1516a01c1fa83b9 Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=d2d4758456aa89863ee615dbe1516a01c1fa83b9 commit d2d4758456aa89863ee615dbe1516a01c1fa83b9 Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:18 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-30 04:44:14 +0000 ctl: Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 (cherry picked from commit 8e6dd4185871cd9b785869178ab2191a0d6c0b53) --- 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 9a99823a5c1c..de759f81bc86 100644 --- a/sys/cam/ctl/ctl.c +++ b/sys/cam/ctl/ctl.c @@ -2711,12 +2711,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 &&