From nobody Mon Sep 30 04:45:16 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 4XH7mF0tyFz5XkKS; Mon, 30 Sep 2024 04:45:17 +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 4XH7mF07Jsz4DqF; Mon, 30 Sep 2024 04:45:17 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671517; 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=tnNLtjoYcteizefa7Pz3Fg338x97AClLe09A7N+g740=; b=GpsO3lAaUXmZEUTe1/DeDraYWiYgtdhhW01Xy5O984CvYWt5fPpGN95XU90oqfenucqV+4 XfuIp3UiRHdJ7Bb8VT8+ek5nnppZgVJ/EkWtA91t+2o5c65AhWGXO5uBlZ6QX+pZ1ccrzs Wd3Sj3dnJr+HyOG3khXxuknSchPgJB+VT2+l+VonI9eT9mhpA0DXLkCUKp/hdWHyshfOwV xbkSneMWUbY4pq+6omvaQi8xv/Aa7CAnNJqG0s2n+AEUoZJrBxUQM4vqmANyHvZzZ5zT20 ioLIbDPFq0t1le4MnpXSetkbNIuW/LIQXYPBmKUMtCzHTnO9ZPIlBZK6xjCyug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671517; 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=tnNLtjoYcteizefa7Pz3Fg338x97AClLe09A7N+g740=; b=Y9mVbeGXzxxzpThyLYBxFRN/cmvm6YgSncN8tKc/2JZGfLui3ukWF/jemAvLhu5QbFCWJ+ AJ4UUDKH3QQuRERbIS/3zbo0ws/hnQ5zc3R0hmoBj57sU8kR5yaBcUM4sCBTMdDhpqWyen 4/iZ+Iv3aClkqlhKp8YhALXPAyYKkojZsBiuQU1GYT6bQ+JW9+LlM1Zh2bXXESkNAr3dY8 kPsVVvGXdh0ojwVXhjySafoTSZGHp/9otoLodp8bdZ6Eg+mn6cRMROORpynfgRBSRX9tBP kZzZelirn0hWU8xE7YYyioosAlv/jr/JXRYVWQMmnmi2PCP7rck/iDUc6bxcdQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727671517; a=rsa-sha256; cv=none; b=Z2+kAKZskad+HjXSVB6AC1u9g/ZGxB9p81fSttRrJAWuPckEjKV1LNDa/ZWgT+w9j5O35c CeGRoheTpS+hoAeRo+eqTt7ntlUsEgQpceGdPHeVVAlXg6TVRnpI363a3Yx1Y6FHB44smL pEMls5HWlmnVa12TgyxI8SAHcvWg7+I0jhhyNu1KQpLYDum7zr9XvbcJBI65PpEgp6kojB UvpjrfwqIuiDyKbggSQfWZ+wGs/vRJUn0Mg5AOGIE+d8OlBx/pEwjbcF68/m+jdRTWiY3g v8CLr90FxCuZI+0Rv0MW5cxBN1L83NKhWyKDY44+BVZ3mIxb6bCA22x6+2+MWw== 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 4XH7mD6lPLzfcy; Mon, 30 Sep 2024 04:45:16 +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 48U4jGKI086568; Mon, 30 Sep 2024 04:45:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48U4jGmX086565; Mon, 30 Sep 2024 04:45:16 GMT (envelope-from git) Date: Mon, 30 Sep 2024 04:45:16 GMT Message-Id: <202409300445.48U4jGmX086565@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: 905d5420ee1e - stable/14 - krping: 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/14 X-Git-Reftype: branch X-Git-Commit: 905d5420ee1eced55f99ab3ba5c340b685f2f896 Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=905d5420ee1eced55f99ab3ba5c340b685f2f896 commit 905d5420ee1eced55f99ab3ba5c340b685f2f896 Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:21 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-30 04:44:17 +0000 krping: Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 (cherry picked from commit 66c35a6675ff987b52a2018871231658b1980a6c) --- sys/contrib/rdma/krping/krping_dev.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sys/contrib/rdma/krping/krping_dev.c b/sys/contrib/rdma/krping/krping_dev.c index eea3c772ea4f..59aa19672443 100644 --- a/sys/contrib/rdma/krping/krping_dev.c +++ b/sys/contrib/rdma/krping/krping_dev.c @@ -174,12 +174,7 @@ krping_write(struct cdev *dev, struct uio *uio, int ioflag) char *cp; krping_t *krpingmsg; - krpingmsg = malloc(sizeof *krpingmsg, M_DEVBUF, M_WAITOK|M_ZERO); - if (!krpingmsg) { - uprintf("Could not malloc mem!\n"); - return ENOMEM; - } - + krpingmsg = malloc(sizeof *krpingmsg, M_DEVBUF, M_WAITOK | M_ZERO); cp = krpingmsg->msg; while (uio->uio_resid) { amt = MIN(uio->uio_resid, remain);