From nobody Mon Sep 30 05:08:00 2024 X-Original-To: dev-commits-src-branches@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 4XH8GT25DTz5Xlnh; Mon, 30 Sep 2024 05:08:01 +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 4XH8GT01t4z4WX5; Mon, 30 Sep 2024 05:08:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727672881; 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=k6PHq0hYzOIykO6N4+4iRowdxKDA4k+gUI/HTygkIqo=; b=YDkYzNF3HZrE3nz0FzvxfKRbhHlHavGpLpez9vcwCvHQu6A+DTMX57JgSVZUqj55tT+7Vh vV0mKIPop+pM/uEIV0JULIQDqgjejFl8cu/QhOAsD48xw/8QO5nFQJVtNXxl0XrNQ50eYS 78FmYuHmlMekBawT0dIrp7ySDQviOxip1n6bgJuMNJBG2yyHOk7ZOekUC7AgTL7cVqYfiN rJkbyRguBHtberEb1unysQx9Rrqv3cbH14BfJOI7Lc6UY+qYxYlkQ3btlY2vqZyNlBd6pf uAEfN3bgi7pZ/Jo9qc6Es5Ita3zonyV/Z9nf06R3M7JeznH+LSLnOeQhmPIGTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727672881; 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=k6PHq0hYzOIykO6N4+4iRowdxKDA4k+gUI/HTygkIqo=; b=ZXk0oRSyCGOd44VIigNfNIwjmbRD44bPdF7OSAzc+Z74DDhXOrYZPR90SJvFIg6yvHGK1u WT7WDU9HFKcMQU0TxNBRYF1bYKXdTaNFGvM3JuGfR8oqrjEKmAlcHc2Mcq9CEtSqa0oQGq z++5RfwcwxBdMNPUZfoxFfU7aWwO4zT3qNz2UNkekYV89rMFHCfaBic1fcE0ipZ5ijomvU NMn2qJHQzcL8MefQYnoeT0IC+L/7TZKMtuRrKfCtbstlrvxhsO9+o9ZN3wko6T83nZ20CB 7NgkClvC13Om5nTTiHqTie+sf0TzIOyfLKERSIpRsy1FDkQ0OjO0mskVxEAANw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727672881; a=rsa-sha256; cv=none; b=KB/6iDLStEWnTkMhfXFjhVqo6FttlUT3bJuQOYG48Ob73Uk+wa+zQ6Xrre3SZjG2LxuxZt iqcG6pGvQrHuov4LyS1eMjJMBbKkaDQIyqKB2SsCOfD1bqVcIZGn3s9ioeR4D+cDQ0qjio sXyYFY/hnhrRK7Ppfsy9p3oYZZXeobApVqexqx9AYM7JAHopn3FdwJTuVJp8pUyvEGigRB i2x7MWUQKt94BPXDTf8XqyiyckyOAkyswcAGFMd4ShjJSMFfjkhV8u1f4Up+Xn8ZP5ILh4 2wv+BEhu8q7f043p3CrhNtxNfKyiKiufD1j4XUlCce2NQ6BIasQzUwnLvPWaRQ== 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 4XH8GS6m6zzg9w; Mon, 30 Sep 2024 05:08:00 +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 48U580po024041; Mon, 30 Sep 2024 05:08:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48U580sY024038; Mon, 30 Sep 2024 05:08:00 GMT (envelope-from git) Date: Mon, 30 Sep 2024 05:08:00 GMT Message-Id: <202409300508.48U580sY024038@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: 8f17a8c8a2d6 - stable/13 - ctl: Stop checking for failures from malloc(M_WAITOK) List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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: 8f17a8c8a2d69923d828e638a6fda970f38b73c3 Auto-Submitted: auto-generated The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=8f17a8c8a2d69923d828e638a6fda970f38b73c3 commit 8f17a8c8a2d69923d828e638a6fda970f38b73c3 Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:18 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-30 05:05:29 +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) (cherry picked from commit d2d4758456aa89863ee615dbe1516a01c1fa83b9) --- 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 b0f34cafac80..ed97bb7c2115 100644 --- a/sys/cam/ctl/ctl.c +++ b/sys/cam/ctl/ctl.c @@ -2710,12 +2710,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 &&