From nobody Mon Sep 30 05:08:06 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 4XH8Gb0F6gz5Xlcv; Mon, 30 Sep 2024 05:08:07 +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 4XH8GZ4vNmz4Wgg; Mon, 30 Sep 2024 05:08:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727672886; 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=pj9pqoo3aEpCZsfOUd5JoqERKJMsgiNVdVcOiygw2jE=; b=eUdDVKXQpqVT4JWVw7x1+sc7vT1t0uB4SlHcj13dw9moTSHH9PZCqTTob1rTuVBTbQ5AUx b2nfQx+Iox68lgLmj5ZAV1yD68kqTh7CqHtPAAtS+wDrjQGFHDiFLqPCkj4pHPsQS6+/qL PmEsZHAI/RTKp2NLIJPuTK8HH1BZNTrzFBtRiWnDHBQ8zfEdYGrg+Ofbnrty6aMJQDhafa lAalWRVEnBiMxMLR9W4DDKfSZeLT69PCUummfF4ntKhGRXgCqrxKQOmyS4dSddbHiUIVSU BETdcqgZbu/Zz2/+gGywGntlmIxmE6lFY7/UeWdz4Up9phrwWJLzdL24e+IbmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727672886; 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=pj9pqoo3aEpCZsfOUd5JoqERKJMsgiNVdVcOiygw2jE=; b=uyk1Ripmix1N9TbAxCQvyO5eZ3AfNCy3YSdCcxzRig8BAv5Z8pxX7F6Zc9MXQ+tDWSnh35 5LPu2mXqhbshbIhDb+gCnFu5QxDnWJSCRE1oEG9CT1PoPcVliwac70oRZ7hseR3fh37Nd+ dkzrH3kbIlxwSwsCtkXTHfPXwL0/DCYRpyCkr8ppMg7oFcX55rQ2uwfE6RL/5K3G+QVOAm yFpE4YmU59W5UC3lNfwg1yAOwUCR+wzzNgKNRnuaSgb5BIi4Od7bkzbLYZ9G+e2W/I+7+O okeaoIBM4eSuCNvQBmXSgrsQAohzGhionrUlLQYK0L8sC6Q+xyy9GBv5/guN0w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727672886; a=rsa-sha256; cv=none; b=MSi9m2+GtiX9UI/25Ckiv+mZUfJ5wNFsJRBYF9qEwLAdY2Bju1KOM5c/FvAmVP4aBwOACv r8tXOswiu7SHEND32Im2nsYOZ4OOJqbkLX3F6JXNIAgGR7T/QaHvlFS2rW6/2pVe1Yft0c QtM3Hmuf9ou9iibk3LHWykN7e+TBpPfcwMuoDFe0r4V/vOq+khvLiV+XXnnQTT+JbRbdYG TNDyp4RpNKQFSVS6I92BJu1dZSgMndSUtYtMPUElgzZSYGoc7N7hNJRCReZodsTpHQGxDq bo8cMxh7Io6VHRnv4pElwGG/7laXxwRBeW0Bs9MTwMAEN4y7ENQjBYQqRbawPQ== 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 4XH8GZ4TFlzftZ; Mon, 30 Sep 2024 05:08:06 +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 48U586Et024305; Mon, 30 Sep 2024 05:08:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48U586Lq024302; Mon, 30 Sep 2024 05:08:06 GMT (envelope-from git) Date: Mon, 30 Sep 2024 05:08:06 GMT Message-Id: <202409300508.48U586Lq024302@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: 4e98af94a124 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: 4e98af94a12408ee38468d2c77d0a19239f5cd95 Auto-Submitted: auto-generated The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=4e98af94a12408ee38468d2c77d0a19239f5cd95 commit 4e98af94a12408ee38468d2c77d0a19239f5cd95 Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:20 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-30 05:05:30 +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) (cherry picked from commit 3d5e539b1f43dec0abd2df61cb958550ef9606a0) --- 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);