From nobody Tue Sep 03 10:26:55 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 4Wyhcw3zxLz5MkQn; Tue, 03 Sep 2024 10:26:56 +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 4Wyhcv6h7qz4s1t; Tue, 3 Sep 2024 10:26:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725359215; 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=gkLF24+DwR6EfaNjO9keDKhQzjvtnxIhBqNCDbvwpbk=; b=sCcj9OKCb/vMYFazrIyUe7w/nBRrK+CdCIUySwUhoCrs0J1nhGDM0hiedO2yqPebKxcmDy lC/CgQAsQTmzBc4FxyZo+NBysIlwrhJc8cQRUckLAyskhMAgwNIble4Ree8SLxW1kcKmAl MZlMPnjdZ4MblSRgCV6jAjgQVRXhBrsMoS5RPeA/U8M2xq37jiBM+FanRmraSGPKjRXDgJ 9Sfsz7+6FOFk2FcErTVvyyjX48SUYrv0+RodYL9FUAxmRFeeJIMdUyVBOJ2Oe7rIh0LCRx xGlDla5jlnFCpHYXkYMMF2peBHbtKhVT2rORTX3XWAI6NJpQtMWsPNO3/huzKw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725359215; a=rsa-sha256; cv=none; b=tH3BICPddn86dOuG/u5cTFKDBULxfFuVWAt5En+VlIEARxJvaou16mWnVDHq3d4FGUkL+C BomcbFkublDwJJCwYWSXg2mKfeg4JLCi8GpECKYEY3NTHMwzrKN1n5QZ9lgot0W+IFEqMg RQTgcGLFfcTrmxDgggLPaJjB8+2DF3uDw6mH2UR8eg53T/jPAWkfOzu07LITRUtwC5vWle dPBTdml4aXgonM4RnU7IiavuiFoJJlAICxiVdFcJaRfrNg+3v48UpAWYDI9VxMroRb3qBo r58PMnFT2ddyt7hG0WwBElzACH7V2L+AhrhvvaxgBnTO1X/RjayHlmBSbvjkVQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725359215; 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=gkLF24+DwR6EfaNjO9keDKhQzjvtnxIhBqNCDbvwpbk=; b=Zai09Puge7+z6i/fHtZDeFxake1MwL1VNNL9r+4GONWr5wjA07EX3mZ1ToRB0gXRfUWoeQ pb2yNN+Sxu82qvsHfOzwOWpa4k0955VxFAIwsRURoswqBxc8S4aGEfRVjxUGhSlcduqcKQ 0ZcoVCCgquQyuts706VKXtxq8nTKwNYLli6C07CNmeM/n7+i3O4ctH4SpD5PBcmKnMbQ+5 qWTMpdDdOwpeyFw0r85kW2rnYfRNcMBumkh0BSI0ALMdZ8v0pB92Y45ZAQbnCsRlhz1nO5 0yb//UDik3jQC5vgfTygOfoJ8Ca3vcVM/q/2Hj3rs2ztZvF/N9aoHA4kITIMvg== 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 4Wyhcv6JXbzcLF; Tue, 3 Sep 2024 10:26:55 +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 483AQtk7009268; Tue, 3 Sep 2024 10:26:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 483AQtJd009265; Tue, 3 Sep 2024 10:26:55 GMT (envelope-from git) Date: Tue, 3 Sep 2024 10:26:55 GMT Message-Id: <202409031026.483AQtJd009265@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Zhenlei Huang Subject: git: 66c35a6675ff - main - krping: 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/main X-Git-Reftype: branch X-Git-Commit: 66c35a6675ff987b52a2018871231658b1980a6c Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=66c35a6675ff987b52a2018871231658b1980a6c commit 66c35a6675ff987b52a2018871231658b1980a6c Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:21 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-03 10:25:21 +0000 krping: Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 --- 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);