From nobody Fri May 13 17:58:48 2022 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 A6E541AE8F7D; Fri, 13 May 2022 17:58:48 +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 4L0Gbr3mq1z4X02; Fri, 13 May 2022 17:58:48 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652464728; 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=HUh2RznUrSCGPNQetCl1s/vq6GQ8kgPA+CN9vyCELIY=; b=UTdvoRrW+N2Ikryy1EX1+peAzJiXvfv9v6gh9z1eUwKBd+A8HMWYYDBwVxkebeJlRxkSpG a0VPs/Jz8UhHffUU7jOm4FHd5Fk7pkoikA5MMwd0b0TYice34MqOp0OG3yfAjFrFGFhsQX K7pep0+OF2OUMk0vL6nRhSTG1XjxdjqCx+c+Etd7lw1l6Q53OM6m6GkEQv3tEcocFQvqKo xVBKAUDN97fzkJsslNqSAxj96FEM35TchND+1iBAElBykpOgLLx6Rn9Xm1Q14O3gwbMfx/ roi0DcYFaWgaOIQbfGpOZIfCoGhaGBqFfSJm4v1cwqQctRjOBFHYryQ5Cf31Mw== 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 3D61D271EB; Fri, 13 May 2022 17:58:48 +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 24DHwmE1069545; Fri, 13 May 2022 17:58:48 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 24DHwmJJ069544; Fri, 13 May 2022 17:58:48 GMT (envelope-from git) Date: Fri, 13 May 2022 17:58:48 GMT Message-Id: <202205131758.24DHwmJJ069544@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: John Baldwin Subject: git: d7cd10445841 - stable/13 - sbni: Use memset to clear flags structure in attach. 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: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: d7cd104458416be4c8bb9f07cba68d016182a2fe Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652464728; 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=HUh2RznUrSCGPNQetCl1s/vq6GQ8kgPA+CN9vyCELIY=; b=j/NsgK2pSA4zTXatNdg98cP59dKUkLpn0Ddi17WUNrvnTzp7Iy+yFF1dTFz2WlpGHoDmqY Rlbl9mz8IICs4nOmBcVhj9IJY6pD1bzLhW0zq/R/crxAgv8GgqvGpSLiTnrh1aiC5gcqNi jWy0svb/0Axk6TNWPR6Ec8sClU76wOYJmJn7/fesDqo4w3l48MW/FbjKXmJjOUAnZyooay iUO2Fsz0uFuENnsqVTcvJdGfkhCK2SKz0GbXPj0cVG8gTC3Eap+v4vneA6gmLwgBVmyBHz EgpruYEhi2w0O9WHbXir21AffNXtHnCG65d5VH4H6xk8wFKIje08vkrfULjyqg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652464728; a=rsa-sha256; cv=none; b=JZpegaMhW1v40ftPGAd9bex1sRv3Z3g/N6pBeImcTCxsqpHPevqSo1o00F4SbvW8gjoV/b Llq/FNv0yD2rlf9aLbFbExAnLWi3coKLnCY7AlTAxohVQhZxk/yDTPFecDDTsqDVGksLeC W/k6aT9JcwzRoFuhNyue6/JWA+NPweMCIQbn6lGPz3iw6YaMrqxadRMeWnQlcYfkMdxJo7 VAbGWXDVfCGRle3Bt1q2Bspms0g4EZGUHrzPDdtkAE3N+V9j6ji2JXp3tfyoPbWa00xTjQ e9lGxhkBl1zxwq9Js/yFm/gVggt9MEiJOJsvsOt9DVieFAqNM805tlpSKN1lQQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=d7cd104458416be4c8bb9f07cba68d016182a2fe commit d7cd104458416be4c8bb9f07cba68d016182a2fe Author: John Baldwin AuthorDate: 2022-04-09 00:25:14 +0000 Commit: John Baldwin CommitDate: 2022-05-13 17:44:36 +0000 sbni: Use memset to clear flags structure in attach. NFC, just less nausea-inducing. (cherry picked from commit 9c11e6af89c3a9c50e52af5fa2645936dc7eff5d) --- sys/dev/sbni/if_sbni_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/sbni/if_sbni_pci.c b/sys/dev/sbni/if_sbni_pci.c index 10af065d22c5..22ae512a7bdc 100644 --- a/sys/dev/sbni/if_sbni_pci.c +++ b/sys/dev/sbni/if_sbni_pci.c @@ -137,7 +137,7 @@ sbni_pci_attach(device_t dev) goto attach_failed; } - *(u_int32_t*)&flags = 0; + memset(&flags, 0, sizeof(flags)); error = sbni_attach(sc, device_get_unit(dev) * 2, flags); if (error) {