From nobody Mon Sep 30 04:45:46 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 4XH7mq0Vtrz5XkLy; Mon, 30 Sep 2024 04:45:47 +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 4XH7mp4tbcz4Fk5; Mon, 30 Sep 2024 04:45:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671546; 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=APpUK+0Qb/hGPg+8HgvJUpSghA+7WKi4CnhCPPmQY0U=; b=gCU5W3ZHUh00lpxwX50RtkJFNrOz1y1PRzwZKVkhZF4JGgl70ws1PGnN5PDbvLX+y9/Xwd hV3Jc3Lqorkrc+2GX8TKc51UufbGOsDqrAWqxazVJWiy2oPX6+vOM5Z1ZPMsBZjPuJSbjp noGfcVZe7bXE8Nq1PJnDCYa7Na96Tw/ufpkN8GJF3pT9wbLwAxv3wmA5ahvQZKT2f69kDi NP/rmPSIXB4SgcOrXus+wSfB+pHLuDAuazyyG2TEHqY8FHWhpZOiJrNKMfeDWrX3Mq4x/l LfAjIrZUGzyGbZnMkj9+ORN3ND/fUoGK3WiO3I3TmP+vwA7yZAtkCaOJv53bBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671546; 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=APpUK+0Qb/hGPg+8HgvJUpSghA+7WKi4CnhCPPmQY0U=; b=YddT/Quwc93EOf1OlU24uF8fqQq/lAiLkBj0eauBymQlRgtkMcPurWQIj3q6NNJtojqUAE yLg5ydm3lt8CutDa14xcHMA37fQ+hfMRcOSccILeS4VV+F5gmda0UpKsoZqJA0jcGpVo/9 rfGLGsjNMvXuIgAW0sHXWLQw80TcKIxLSlX2rexJF22ORZ1o0OAy7+9+UEO8VUVBQtK3AR jfamG5P1KcfB/Id1VL64PxrqJpxOOleYYr3eVQP4knHHiPdqftGjhxl0nLUwK1fnruD3S0 M3fSxaoSEgLT0CSGGzoDFY0cvDvT387zq/XVRAoQZeMZaNA8dXNbcehMoRo/ZQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727671546; a=rsa-sha256; cv=none; b=WCCi0dEaTyIwlJX85VPWDIiF9GMzWLXWwo4PEWWZX9L1h9QPaDIRbfAvJNp4uVaLMtd/2Y sG4Ce41esBzollS3D6ASSsZFagyIdRV4Rsowd+zmYho/YJboKMvkxhq+vju3Xk5J1rrUzY 5v1P+5+WTefzXOwXRs6LbpT1lY2MUxyQSZdfsDC4SLkou9Ex+Wy2GHxKmGZkZVYDPvnHFk IIH8V4p/fe5Ds6v52Tu+vYUtPcnLMRKL1sIgJ2dhFDFyikQ5xP/I0rj/HSVQ9yUwgqQFi7 QFT/qUtjY4b7tZ82CrFbza7LYzsy6XDgl7DZj8HJQE0oJvCbB/dnD5u/JtzlUw== 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 4XH7mp3v7vzf9X; Mon, 30 Sep 2024 04:45:46 +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 48U4jkAf087898; Mon, 30 Sep 2024 04:45:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48U4jk7B087895; Mon, 30 Sep 2024 04:45:46 GMT (envelope-from git) Date: Mon, 30 Sep 2024 04:45:46 GMT Message-Id: <202409300445.48U4jk7B087895@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: 3e51da349563 - stable/14 - mrsas(4): 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: 3e51da34956345ca736944c8a296bb9103a01c6c Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=3e51da34956345ca736944c8a296bb9103a01c6c commit 3e51da34956345ca736944c8a296bb9103a01c6c Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:32 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-30 04:44:25 +0000 mrsas(4): Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 (cherry picked from commit a38d9ad473123dca86108651ba10740055720777) --- sys/dev/mrsas/mrsas_ioctl.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/sys/dev/mrsas/mrsas_ioctl.c b/sys/dev/mrsas/mrsas_ioctl.c index 74eacfbeb9fa..8a85544604a4 100644 --- a/sys/dev/mrsas/mrsas_ioctl.c +++ b/sys/dev/mrsas/mrsas_ioctl.c @@ -462,13 +462,6 @@ mrsas_user_command(struct mrsas_softc *sc, struct mfi_ioc_passthru *ioc) kern_sge[0].length = 0; } else { ioctl_temp_data_mem = malloc(ioc->buf_size, M_MRSAS, M_WAITOK); - if (ioctl_temp_data_mem == NULL) { - device_printf(sc->mrsas_dev, "Could not allocate " - "%d memory for temporary passthrough ioctl\n", - ioc->buf_size); - ret = ENOMEM; - goto out; - } /* Copy in data from user space */ ret = copyin(ioc->buf, ioctl_temp_data_mem, ioc->buf_size); @@ -483,12 +476,6 @@ mrsas_user_command(struct mrsas_softc *sc, struct mfi_ioc_passthru *ioc) */ passcmd = malloc(sizeof(struct mrsas_passthru_cmd), M_MRSAS, M_WAITOK); - if (passcmd == NULL) { - device_printf(sc->mrsas_dev, "Could not allocate " - "memory for temporary passthrough cb struct\n"); - ret = ENOMEM; - goto out; - } passcmd->complete = 0; passcmd->sc = sc; passcmd->cmd = cmd;