From nobody Tue Nov 30 21:43:00 2021 X-Original-To: dev-commits-src-main@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 BA48A18B6219; Tue, 30 Nov 2021 21:43:00 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J3bLD3WQ6z3kws; Tue, 30 Nov 2021 21:43:00 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 3F0531DBAB; Tue, 30 Nov 2021 21:43:00 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1AULh0rO068290; Tue, 30 Nov 2021 21:43:00 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1AULh031068289; Tue, 30 Nov 2021 21:43:00 GMT (envelope-from git) Date: Tue, 30 Nov 2021 21:43:00 GMT Message-Id: <202111302143.1AULh031068289@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 3846662dab2c - main - cam: Initialize wired to false List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3846662dab2c46a0d1e4532c4b7f7e317cab8883 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638308580; 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=ANs8pUINZlI6hUd45ihENEpjtVi4xVJAS3yQ3a/Co9c=; b=R6var+MecBDlMfiqXeu6CGikZ1sieGROP/wiJb5n/EkQyIEuurAsNdFkwqALGiEcZ/1pKT MzZjsyNPDndzrpqdTmuR5QbrM5LpXWLLO0/gG2WOXRG613k0bgHLZcrMCPBjXEwCYQHgbO 14pMgc5HF5i7m7ksVRtogBL+3Paokv7CFKNAC/wSLVOiss4HOy8m6ORTbyAYbmp6uNIT7/ UisODdBIJAG4nocnaY7wjPkI5wpKlKNqyXTmNyPBtOjqY7Iq5m5N96GcofihW/jri0W7RO Q0IqcFqcn2VVn2r/sxPHcpNufH7iqUyLuFDe/KDM2OMjYbRlm4PMEks3B2kUew== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638308580; a=rsa-sha256; cv=none; b=MqwydqAoH3uNSDW8AtRHM8fsufiTlL4F53Q6ILun20/Yigmp8IB660CGmjmLe+98oKEZ9l OYycSCo2+ahxp4giyCwMYB0eMF8iHH/9E9jLbVWkc38qpVVKrZPqFfDqhxK7UmPe50sPWs a72iU8uxlkpSCcwo2s8hRaSDWIQiXxH1ify728OwmzO6gXdOWcQ514GStsHOgLzJa0567v A8rnUhdy/L4eecxet95WJjsZucG5TiLei7wNke7dY2VUN+AZIoXlMecX5JzGACHGg5C0qo H7xwin+Lf+RiEdrZ+7GVQ73MzZd/KszlLUZ7z5Umksde44CX+7OLCITKMPKvrg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=3846662dab2c46a0d1e4532c4b7f7e317cab8883 commit 3846662dab2c46a0d1e4532c4b7f7e317cab8883 Author: Warner Losh AuthorDate: 2021-11-30 21:14:55 +0000 Commit: Warner Losh CommitDate: 2021-11-30 21:40:30 +0000 cam: Initialize wired to false As part of converting the code to a while loop, the unconditional initialization of wired to false was lost. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D33163 --- sys/cam/cam_periph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/cam/cam_periph.c b/sys/cam/cam_periph.c index 54fe9a0ef40c..1203ac2d9b21 100644 --- a/sys/cam/cam_periph.c +++ b/sys/cam/cam_periph.c @@ -600,7 +600,7 @@ static u_int camperiphunit(struct periph_driver *p_drv, path_id_t pathid, target_id_t target, lun_id_t lun, const char *sn) { - bool wired; + bool wired = false; u_int unit; int i, val, dunit; const char *dname, *strval;