From nobody Mon Sep 30 04:45:35 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 4XH7mb5CxSz5Xk12; Mon, 30 Sep 2024 04:45:35 +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 4XH7mb344Fz4FNW; Mon, 30 Sep 2024 04:45:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671535; 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=TBDwHy60z43ST/Yx9UYpQ73C95WPG59o/U0WTaAYDQA=; b=a7ttbB7YIdyBE9t7p+G8MGqiLBqA36MdLVeEbTmA24FFbiv4O4Wz5nB0fiUuCNcUOYP31Q drzO8oC2NzEJ7rjP5odWeC037NDSAqZWHg3JOjlJ5f67qXWE+ym3D+LpVg3+LbaeNWTt0p YcFp4f4xndC9EkZAPLM/3sZ2WSq04HfSdcLTm46T/MYzrcG573kR+zNcTiK9cGfy7Bd3QJ PGWc2ESfyEpfMOD1VREXzKmfYBjCy6EFrOQ2cfLmNB4b4yh9qQXlvs68qByxgZIem5CEsp TBBWftBzEsmEwzzNCSx16EPjxK1yKvTrGeuii3tUe7jB5fmUKggqHrcTXoe0Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1727671535; 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=TBDwHy60z43ST/Yx9UYpQ73C95WPG59o/U0WTaAYDQA=; b=cfdS9+aWoNGNtVlkW4adjeBdCABTpPQkXA67G6BgoJOjjvk7TYyTIv3MavPSnh7gqFUC+n tkBcaUkpH9qzYwm5USyokOvk0IVuUCAQkFppWsuxzXM46nbN+SH4qXHnRfu+XeIRzeEMKE yOvsW4pUE7Sd2xwwh46jaXzGpxPljetYkpCzA8g3rMzKnqbdhLyJ5TsDzQ3m1uCnd5zsFa 56n3n6A4ChZp9YqB7G3n6t59Rcq4I0io/PSFjsgY+ZyIilJPUE0B6ZYxAF63xCjByRST9S tTN7bU/5p6BXeb+HJvnBk90HI3KpqHcwLFhWRt68fZ2+wHraGFI+X409TLsmXw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1727671535; a=rsa-sha256; cv=none; b=QUO0Aqpdz2eYZjq+a/vhAKsi/1i33Va1fjQLN8XrPwrUnrlfG4tx/q24GcU/WyzFMu9RtR sD1trIXIQvgyOKPv7YFu6ygTzcpEs+YTJqatNbHqs9dyMlTxBMnjl2yprG6Ys4vJN6DGtF udxGcYJBldRucDiWJdajNHyEGr1UfUFl2Ro3cataY35gi2/dpjXEp+H47KYCd8oamWictD SHik9PJi/UGidcSNX7TN0rQeQUttgpqJDiJHkP2LvxsePhzGJvYNyASHHENjUGeywQ+3LN Jgb+FEs7eMH5z061ZEMF1ipJsYBA/azwHh4YtJkt8f+l59nE8yuTrsC1uPDkeQ== 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 4XH7mb21gJzf2K; Mon, 30 Sep 2024 04:45:35 +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 48U4jZe9087381; Mon, 30 Sep 2024 04:45:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48U4jZSC087378; Mon, 30 Sep 2024 04:45:35 GMT (envelope-from git) Date: Mon, 30 Sep 2024 04:45:35 GMT Message-Id: <202409300445.48U4jZSC087378@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: f3af52726024 - stable/14 - fwip(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/stable/14 X-Git-Reftype: branch X-Git-Commit: f3af527260242c570b3e2bea56287f1ad5abb7b7 Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=f3af527260242c570b3e2bea56287f1ad5abb7b7 commit f3af527260242c570b3e2bea56287f1ad5abb7b7 Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:28 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-30 04:44:22 +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) --- 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 6350ec9cb56e..41143e2e59d4 100644 --- a/sys/dev/firewire/if_fwip.c +++ b/sys/dev/firewire/if_fwip.c @@ -304,13 +304,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);