From nobody Mon Sep 30 04:45:14 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 4XH7mC1Cd6z5XjpL; Mon, 30 Sep 2024 04:45:15 +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 4XH7mB5dxTz4Dw7; Mon, 30 Sep 2024 04:45:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671514; 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=nTAdvOqcQEjZFF1eahVyNuAheQvXWC+DH9WPauDc45E=; b=nPeJom4VAfD4hirO5QJOnsRvR5MAY9s/Gxh+v59gSJYpO+X/2KmqRN3fahzL4fITzlywIM nUZMbUVWPyjGIvZ1lVzpjj2g7OJeOnP+/wiYIbiYrvUElLoGnDLE5gynVkNOODaiyi8qWp 54KtumEelzluRn/rQoDMbLpWa+Uv1tzN6S6D0GaBFdQ4HA7fgQ9z66XJi86PdHugc1c0Zf vBOA6k83ESGg8PPQGHFj1WaZAS662oZqre0j+aDLTcZyknh/XgaTXBiN4z2Wv82sYCWg2G D7gsrV7NisgPYBw7RwcjJZM4taXc/sYyl0q9CyIcj/apXPq1Mt14cDhELAputw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671514; 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=nTAdvOqcQEjZFF1eahVyNuAheQvXWC+DH9WPauDc45E=; b=Ky/ylhvxyGbMXcglYEq9zP7LBfqr1DW1Y2b1qx2G/IuvJxmioVIWw+HKj9p6W6Qpa4IgbP vKW76HLM3j0IYlYffuPVYLeI/kT8svLqem6yiYU8xv8fMr5c52tJtBooDcuy3xaW7n8oY3 wFRhrd7/D+DXjsceyUgMJB9siyFF5xeMB5whN3yumqUdW6abjYBiJdym1xzUiSEys+DSbd z9Xes4wHPLS5wXMyplnRBXnpqqD4FqmkUst673SAWsSTO45JtJ90zrF/BF1hWIg4ALAJa1 8Y6a1ILYoZyodTWUPTCiIlaNxp4Pd4+Q3X/MNyA47DLpPOOcfc+ZiAKXkxzK6A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727671514; a=rsa-sha256; cv=none; b=yJRSc5KzvQ1EvHse1WtD5og6KS7ue7y2OhmSCXtViZlS9I3RIZI7NlBWyunAa2Qt0S4vK2 jtPvbHw7TgL6YT7SD8Q9l6VCKPXR6qyewoOPhwXG2QjrTDnMd6xDyfquz/OKtSFgCbPb03 J6jMnka/ehiXbnodqyUulybFcEtCw7cylq9M0IuK1Pf6TqNGpFl5F1fLO3COAfuTMXOwnm d1RWyFa8pYk8PVVfwg4cQpY9MTV78j5Rz9yq6yh3uturHH9FBHO860xT4ekG62t24r5YCb sReVdluAR8dwR29n043fkMDmnohhwCiPfxcizZIlss3W7gsNnlh4DbxkhjrlFQ== 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 4XH7mB53rPzf9R; Mon, 30 Sep 2024 04:45:14 +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 48U4jEhd086468; Mon, 30 Sep 2024 04:45:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48U4jEKk086465; Mon, 30 Sep 2024 04:45:14 GMT (envelope-from git) Date: Mon, 30 Sep 2024 04:45:14 GMT Message-Id: <202409300445.48U4jEKk086465@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: 3d5e539b1f43 - stable/14 - xdr: 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: 3d5e539b1f43dec0abd2df61cb958550ef9606a0 Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=3d5e539b1f43dec0abd2df61cb958550ef9606a0 commit 3d5e539b1f43dec0abd2df61cb958550ef9606a0 Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:20 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-30 04:44:16 +0000 xdr: Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 (cherry picked from commit 7a720bf67d73ba565a0a1130065f798870eb5faa) --- sys/xdr/xdr_sizeof.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sys/xdr/xdr_sizeof.c b/sys/xdr/xdr_sizeof.c index 6491fa80dce1..fc341dcaa9df 100644 --- a/sys/xdr/xdr_sizeof.c +++ b/sys/xdr/xdr_sizeof.c @@ -95,10 +95,7 @@ x_inline(XDR *xdrs, u_int len) /* Free the earlier space and allocate new area */ if (xdrs->x_private) free(xdrs->x_private, M_RPC); - if ((xdrs->x_private = (caddr_t) malloc(len, M_RPC, M_WAITOK)) == NULL) { - xdrs->x_base = 0; - return (NULL); - } + xdrs->x_private = malloc(len, M_RPC, M_WAITOK); xdrs->x_base = (caddr_t)(uintptr_t) len; xdrs->x_handy += len; return ((int32_t *) xdrs->x_private);