From nobody Mon Sep 30 04:45:05 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 4XH7m15H9yz5Xjp5; Mon, 30 Sep 2024 04:45:05 +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 4XH7m14cf6z4Dg4; Mon, 30 Sep 2024 04:45:05 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671505; 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=PyHJS/wkYeAwXSUNSVteFx0+AtjSxGA6vC6mHsFrZOE=; b=JSyZNXXn51X5VA3w4EON7hov9fuwfF4iuXNDmzL/OxXas8TpkbYKjAhEu4xbSBpE31Gu7J XoSX4YpQFpUaVCg76qQsd7feDAMJlE0k97YrMLgZF6nICbgfMupzja3NrlpUJ9GnJhTkEX c3Yj22HfKvLgRpbSrDpjiqhqViQnL9MGSCeo40bMS0wDe71ysYoXnJHDIO69DHAxTu9br7 /OxeeNiY3C6Rl4ZbW6KwEfYDNgWRcnA+3+aIok1MQIAHJzxzHQ14vaHNCtYGxPnHidJtpG 0xPRwNu8rl63kMHNZVEMEPC0tGzkzx4HO0te/eJiO+IZsM7MbMZFlYmWbyugog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671505; 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=PyHJS/wkYeAwXSUNSVteFx0+AtjSxGA6vC6mHsFrZOE=; b=Of/B9+s2+xjPMDvjWZleL8ZIDmIvgK2Q2vnyO/0dyOLJtGO2b8TSaB7P3PaOjl30IBUiXD XZycJhrXToCx30+h5MhxkJhVisFCAXthneuzNAefAAy34mPLx32epfMWxWn/CcTZss3heQ yILG54RYAy4ApSy0cjr+1nVQw4RRwws/gXi8m83sEH2yml57jpcVruUB0/afrM/6UmY62x B+OQG1LXHOY5RZEVcUanFsGIwEKJIRXjYyQs786XvnG8HS1ZHA41+jsnGzJcDsSKtOhfZh 0rp53BgV6jG8tTSP97wzR9oTUUPpa22et312cqTOrjMHANcnztup8AfLZ6AZow== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727671505; a=rsa-sha256; cv=none; b=Qb9Ugab6j9cJB/jPBjNl9chJ0q8GYZRH05lzwzy1jgjTf7J425qEWB++mD8+dpv4TTRnbR GqcAgKWdGK7Das6XCBOdciUBKAbFfrnK7TZ2s7lC7HTA6nk4ly1mf1tQiJe77ST7dXSet7 lTDLiMJjuA/QpxPvH1xf8jdM8Q5lQWXUeE5fdWa6M9ptkCmS3YFt+zPxzxw+3gZKZNP17F fK+WJeLLKBdQcwSPVPvMfb/7UePlZ+JsTlfcrja/icxBfueM4HH2m9YJcJL8UU+iYDej3M zhmTbUjlrhF2OBXnnwtlyPCsxjYXzZiPIxg1zjCPzXHKrGCvtc/FUoTtPSKHrQ== 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 4XH7m147VHzf28; Mon, 30 Sep 2024 04:45:05 +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 48U4j55i086052; Mon, 30 Sep 2024 04:45:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48U4j56W086049; Mon, 30 Sep 2024 04:45:05 GMT (envelope-from git) Date: Mon, 30 Sep 2024 04:45:05 GMT Message-Id: <202409300445.48U4j56W086049@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: ab314540193e - stable/14 - boottrace: Stop checking for failures from realloc(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: ab314540193e75983ceb363b18433ce405d943e6 Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=ab314540193e75983ceb363b18433ce405d943e6 commit ab314540193e75983ceb363b18433ce405d943e6 Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:17 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-30 04:44:13 +0000 boottrace: Stop checking for failures from realloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 (cherry picked from commit f444db950e877596805aed897c3fbb975be28711) --- sys/kern/kern_boottrace.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sys/kern/kern_boottrace.c b/sys/kern/kern_boottrace.c index 1b097e7378ad..5516f3160587 100644 --- a/sys/kern/kern_boottrace.c +++ b/sys/kern/kern_boottrace.c @@ -561,9 +561,6 @@ boottrace_resize(u_int newsize) } rt.table = realloc(rt.table, newsize * sizeof(struct bt_event), M_BOOTTRACE, M_WAITOK | M_ZERO); - if (rt.table == NULL) - return (ENOMEM); - rt.size = newsize; boottrace_reset("boottrace_resize"); return (0);