From nobody Tue Sep 03 10:27:25 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 4WyhdV0lbSz5MkRy; Tue, 03 Sep 2024 10:27:26 +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 4WyhdT43hTz4sxw; Tue, 3 Sep 2024 10:27:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725359245; 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=6boHawjXqzgJfUlCfphdj5aMt7O0ob6ZvAvdgb/N+oo=; b=vfaWRfSqeoyPnQJfknofLF1BN9Q6pk4kb5W9QDcb/PgJlvpzHsxZl/YJa6eM432CR+GXEt Zi3A/J4xI8qQcKHGffSzg0Ts6Byrsp8nhBhig62j0SmMspxEvLMze+NZEALvdGMKDcZ3dU U2kABQyTGFKrSP4Anl3j/bLbfGNg6257foCwKJ3mCYgJkKYQ93Cj41MYdrycRYSPk8eFZh WL7gZ2XcYyorJlatcAXDVFJRTkPgYUTfkoxnvnaUCWbjBughfrTG+jKJgX8zVbG1KtStb1 PyfGfJmDmXSBDjQc7eGEpbs+Lf+KIjQgAs5P2+vpn3EzmAM6BlY9nBwQ/Wwx/g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725359245; a=rsa-sha256; cv=none; b=nNd4fo0LDgD9VkK9IBEr6P0dnsTuy10Qz6vFttJ/4H1GjkqNywKltLUvEAczqkvNno5euS IikGllPw/Z3t78v8ofK3tjZb5beapY6Y7SJLi1zaS7TjKyKSmuRfDYE6hL+hksUThZgntX 0WGPyHh2TA5DpQgtLdrMZxGL869fLYslk+dUqdKfhq/CqYUvFurLzvSFpC9LTy0AfjnYA4 xAUe5uI+7nKjGRVfPv+7vxD0d/7D3r71SjLwhXlOAxiP69X+XtFJyZTRV/jM6o7kZLGLde Biz+8LrL3Fcgqwmx/1IxdW1megwZXIalOxmwR3sMpfJ2RAxq3HylPR70Dx5LuA== 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=1725359245; 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=6boHawjXqzgJfUlCfphdj5aMt7O0ob6ZvAvdgb/N+oo=; b=hEuOz2ZtO/jp+96kxYHX2ELj6E24j7Fd7dQwwMjfDEBnpspMtnRpxaWkuF0bfv9QYrE3ov r+IHA9hohZXp5Ao6cBA1NqtnP/o5uflR3PI2r9rwp0/QqJY6A0owu6lNq+G7SxnGd6MzGl y0sTkvbfbHIJx/i9Q+DvaJxY3TFYItdSTUot/MW34H7i1FIpNC30BtK1Ug+9H9b8Q6t+Hw gZ1xlif8S/m1Sh83vO1lhobESsLIywyMOW4kbSEE9XPpy+Xj48ZwBj4nmT0AIkgdmfc7un FVT8hPvhLoDiqy7UsuZkO0L4EG/I8qEjdu7PCZ0RciHCzTNN+uKVru9j8n5MhA== 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 4WyhdT3g0fzcsv; Tue, 3 Sep 2024 10:27:25 +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 483ARPl7010607; Tue, 3 Sep 2024 10:27:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 483ARP2p010604; Tue, 3 Sep 2024 10:27:25 GMT (envelope-from git) Date: Tue, 3 Sep 2024 10:27:25 GMT Message-Id: <202409031027.483ARP2p010604@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: a38d9ad47312 - main - mrsas(4): 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: a38d9ad473123dca86108651ba10740055720777 Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=a38d9ad473123dca86108651ba10740055720777 commit a38d9ad473123dca86108651ba10740055720777 Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:32 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-03 10:25:32 +0000 mrsas(4): Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 --- 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;