From nobody Mon Sep 30 05:08:25 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 4XH8Gy12p8z5XlpF; Mon, 30 Sep 2024 05:08: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 4XH8Gx1jLlz4XBs; Mon, 30 Sep 2024 05:08:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727672905; 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=SpPwaRYfdVSDD2LdwDQY0CYg/cpAKMDzNVp0XtU8ac8=; b=dLN5/e6HXoRI1DzZr4qEHdW4jWs+Ka9Y3wAdkg0CtOkhmqQvptzZarZDoDW7oMo89fd6cq o0nR7S2US3hHMaVorPXMKX8kaD9eAnT5Pw8W4pU7ISuFFmtw0iOqqen+NGhjW52ZRvwV9S 3OX1rPE89XgZ6AskCXT38b1rLbQR5C22PQAYBkSfnatXB6gIlfpIMRJaF/q0Xs5ttnIny6 CHbHmNDVtI3M22RXc5NHZovdSTrLp0UV3lXYEFPIgLM3PGP13P76zd/r5kX1wZHBBXeO+O zqBO6HM/MzrgKGRKhAGHVxzgyyJfJYhOyQ7mvKIvMXOHo6tBMjlxgFD2YBIlmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727672905; 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=SpPwaRYfdVSDD2LdwDQY0CYg/cpAKMDzNVp0XtU8ac8=; b=Ol50a1teTZkOWBOxGDoD6TQ7hqPMccZiSlCCfjo1pG8GqXRjbtG1r/DVCwARizKkNYwWF4 11kuTL6FHgwa6Vgdsa/Yx/TvvT2kVcpqWRoo5NFk4iXzoD1H9GSaHiSPIgVS3diSLPKcqI J661rNtBpSK86sdjSK+ntI/rzpyOBCx1QCrWYMM04ZZHJtW6fF084nZBnSLG/dL8ItZ3qw liA0r2NF6zNiW8AT3v4K6l1Ps4rYHVl5mvJyiOORu+j6XGzJRYY1XmnM5y6p0oKxx2vB/8 4au9KFEXN61FZ82skjbekTzWYF30y3PjVbMOUJimTFGHM/8n1v52H9t/I1cBGw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727672905; a=rsa-sha256; cv=none; b=dop0b9ZN+ACYN2T5MY5CEvFXAd1ZKj9gs6pK6bvavq9SpvFtltQpnNVyVZboVLJ6BUic5v o03I0npeLzNFCXOwwOPubxY6YIEDVnoZ0WLnfXc9W8zBcAfoApyaLgPCbY4h0dEy7WV8Rv HEWXsGcgAY4kB3mco7RSA3cwrwPaeeKX22un31s76zslWN3t8L0SxHBL9Sb6UP693VQ9qh 5pj5rUHsexvBplwoIuM8m33htMNJRM1jTDo3/kAPrbq6+yDyeMba+0sbfVPQ//BkC9e8va tSYWFUV3PkbyeYacN3agRC011XpCS9lJk51TtVz1QGnXw59Y0U0pO/ws+ysVdg== 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 4XH8Gx1Kchzfqx; Mon, 30 Sep 2024 05:08: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 48U58P2s025113; Mon, 30 Sep 2024 05:08:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48U58PTV025110; Mon, 30 Sep 2024 05:08:25 GMT (envelope-from git) Date: Mon, 30 Sep 2024 05:08:25 GMT Message-Id: <202409300508.48U58PTV025110@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: 97cc0b1fa252 - stable/13 - fwip(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/13 X-Git-Reftype: branch X-Git-Commit: 97cc0b1fa2529372c56c78de8e410fd02d13aa65 Auto-Submitted: auto-generated The branch stable/13 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=97cc0b1fa2529372c56c78de8e410fd02d13aa65 commit 97cc0b1fa2529372c56c78de8e410fd02d13aa65 Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:28 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-30 05:05:36 +0000 fwip(4): Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 (cherry picked from commit 4d47c7ca7baa1ae76cc1fc72ec85b475f1efd41d) (cherry picked from commit f3af527260242c570b3e2bea56287f1ad5abb7b7) --- sys/dev/firewire/if_fwip.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/dev/firewire/if_fwip.c b/sys/dev/firewire/if_fwip.c index f7f2db4589d5..89b34aab4257 100644 --- a/sys/dev/firewire/if_fwip.c +++ b/sys/dev/firewire/if_fwip.c @@ -306,13 +306,9 @@ fwip_init(void *arg) xferq->psize = MCLBYTES; xferq->queued = 0; xferq->buf = NULL; - xferq->bulkxfer = (struct fw_bulkxfer *) malloc( + xferq->bulkxfer = malloc( sizeof(struct fw_bulkxfer) * xferq->bnchunk, M_FWIP, M_WAITOK); - if (xferq->bulkxfer == NULL) { - printf("if_fwip: malloc failed\n"); - return; - } STAILQ_INIT(&xferq->stvalid); STAILQ_INIT(&xferq->stfree); STAILQ_INIT(&xferq->stdma);