From nobody Tue Sep 03 10:27:14 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 4WyhdG46z5z5Mkcm; Tue, 03 Sep 2024 10:27:14 +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 4WyhdG1r09z4scC; Tue, 3 Sep 2024 10:27:14 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725359234; 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=LUdg2It9loqIGAMlkEmeu6c38m10eoDbNcgo/zi16ho=; b=foV07igcUyOOxNrFIBAIeQhen3PMZ0NyDAIah+eEOfCIv+NJf6fbEd6GYeql4JPaXtsCpf l4bF4dgaAUQhI5JjhLxinwycjwNxQQYOehtv0SydLcc9yxO5vrCZnaduF8sChl4oERaWdH Ly3k88A9Kqcnc1qBKd9V8aRbqUa7+EYK5dorhj2XtlWGjTbq/9pSlbiRfOvNZOhXkqDneF RhDF+FqGt93jEWz0ahDcMPC9oVUqUmkSjSwwTQp/UArV3e9xjodeoeNCk1gnGfXj4/w2Da v7PIQyMzqhP1FfUkVECGsZ9TCbR2Gk5Zd7dXb15frSBWgNQmOFFdkBnVIdqISA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725359234; a=rsa-sha256; cv=none; b=b55ExUXJmFipvBcw7FE+oacg4bJFciFrpbJ7zp7DxUMgEMR4tuk0HE9xOiHzoRwISdNlN7 1kIcJmpFzM2+sz2J5Umccu1lvJW7zX4oMLGe9ToF2vU6jRw1Yu1Sp7Gox4j+HfeKJtqG/I 550Jzc8coDOeOjljlRbXszDROi/e7d0vYUxhaScvqql8qxTB+Sbp0+qHP4nzv2mBGjwwJ6 aQ4I+TCSMIR7bhbevV0odUmbdAK3+m3lhUtDn7uwpQ4XlcpJuu/TUrDe4NKcV/DgHYEdRX m7ecAb9erkN8TEu+LZWe/iIqtMBJwRytm9nj8HvqMfaQPBBQf3bZZdd1QzU2tQ== 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=1725359234; 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=LUdg2It9loqIGAMlkEmeu6c38m10eoDbNcgo/zi16ho=; b=shbxsWuxQmX3i8RFR/B4E1XnIyun3TTaqckAqSKpjPIAosxlfiXknuKbmjhkuDfqneQYBs hNg8nmDjYhN8AlxJqkbibqfcBrBIkChZQ7fIKQxfuHkuDORTwHMdMJ6jTmBtB4laX6HJL5 9F62navnDGgh+XvLm+pFe0fziG90Uk5Dw8p9WNj+mf6amBN70Q5jLVwKhdG0GIBZc9I76e b8k3M+7aAwhfxTmf57EaXi4yyCwMrMQgzxMMJBfm8wT0hez2aXSFHb2IOxZ/CGDvW/omOa gOtLgGPRsyFNJn0jKRgll7TD6Q1epejiHL4uS+rwyUT2M6xqfvslcJnoJJjXKg== 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 4WyhdG1SY8zd14; Tue, 3 Sep 2024 10:27:14 +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 483AREAL010088; Tue, 3 Sep 2024 10:27:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 483AREXx010085; Tue, 3 Sep 2024 10:27:14 GMT (envelope-from git) Date: Tue, 3 Sep 2024 10:27:14 GMT Message-Id: <202409031027.483AREXx010085@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: 4d47c7ca7baa - main - 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/main X-Git-Reftype: branch X-Git-Commit: 4d47c7ca7baa1ae76cc1fc72ec85b475f1efd41d Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=4d47c7ca7baa1ae76cc1fc72ec85b475f1efd41d commit 4d47c7ca7baa1ae76cc1fc72ec85b475f1efd41d Author: Zhenlei Huang AuthorDate: 2024-09-03 10:25:28 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-03 10:25:28 +0000 fwip(4): Stop checking for failures from malloc(M_WAITOK) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 --- 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);