From nobody Fri May 10 16:41:39 2024 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 4VbZQq3mWLz5K2Z9; Fri, 10 May 2024 16:41:39 +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 4VbZQq3KHxz44RP; Fri, 10 May 2024 16:41:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1715359299; 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=6kFKByAAv7KbYWxl4mmoYYOF6zgg8kUSGZ5L7UvAsvo=; b=fUK+G4fipIdlfztC6mKP2bsvmrRD+kly5hwx2FPDOag3gxtI1IR8KcugIS8sW8Ujvaefd5 mtUwITpCwzUYsGEoS1x4funoKNfK5e5OEOb5LDEI/aSMlMvWRVYeef6QkVKDrIsH0n27IG glFGAOu8jK9wVJtjaWg9L/wFsq8ASy+HgCbtbKDK+xtjYh00cn2qIj6vg1BgMyJEEvUTir 4JGX0T2N4o61tUcna2NWanfry1RDf9CVz1TsCt6AOlYxM/OQI7tChrDFJWd3yekHzl9qQI ksqEUeWRgEcldkCd81lma/At68j+5eI8M3Byro0hn4edXa9S5oI5C/q0tUiIbg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1715359299; a=rsa-sha256; cv=none; b=aYb8/6E9MaxWQXxaMsMdoXuJSLUwtDvCDtwathEQJ4j1WkQxEhb5rFgpF5iU71XohQQUYY GtECbgyTTHUUkN0SXQMAsDfsdnfoV5dzTKpYZVXO2/fiPPE5aZwtRdHLZ0CFgohGrsIYtQ cOgz555dlIKnnvWRcpyRmJCCU6o5yCkSgKNlMWuDBElvYblbXTQZww9xtf9OBsa89qoNuf Hag6MJg5RDNU/kF3yeToFt3mH/nfbPDM43wS4APZU3CoNJzeSuHBGp8yWLVW2VTBdc9UZp CvypTUbpJ/zUOBRnB2tuN4vkahntY8RJyYBwk66pFmdlu6guXIxjZx7Wh+otxw== 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=1715359299; 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=6kFKByAAv7KbYWxl4mmoYYOF6zgg8kUSGZ5L7UvAsvo=; b=J4kjt2FPaBFc2Mfx4D4K8DXA0pdaWBB/bNalhAxy2ITqa53DNtvO+QWk0d9ecKSpy266Oz xkdQVhJsq5/xR5PtHpuDT/NYAlBN1n6EEurEHnUcUyVsIhwbBmfhPLHAsBZ/v3oovVzap+ J+Wc8rsKhaivGu6fi3QT54aJAMIUQ8RdlNCZZQ0iduCbqn3NJQ/NvoNRGwkPrnmP/hah5i 5Aym0Q16t1V4huoToF4UJ3179/tAHGFcDyxWjQ2CBORnrM7fvjD+d2XWiTsRhNhPKqNn34 G57HiLC/Wt7TgVGNyZcuzRm1IgwPDKijm56ndDwVaEryI/wRLDmrbOPfiXOJHw== 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 4VbZQq2wrhzlB6; Fri, 10 May 2024 16:41:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44AGfdhl017884; Fri, 10 May 2024 16:41:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44AGfdTH017881; Fri, 10 May 2024 16:41:39 GMT (envelope-from git) Date: Fri, 10 May 2024 16:41:39 GMT Message-Id: <202405101641.44AGfdTH017881@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: bf1820f187bd - main - nvmecontrol: Fix a sizeof mismatch 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: bf1820f187bd3f90935dc5514e61d1d3a394a21c Auto-Submitted: auto-generated The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=bf1820f187bd3f90935dc5514e61d1d3a394a21c commit bf1820f187bd3f90935dc5514e61d1d3a394a21c Author: John Baldwin AuthorDate: 2024-05-10 15:54:02 +0000 Commit: John Baldwin CommitDate: 2024-05-10 15:54:02 +0000 nvmecontrol: Fix a sizeof mismatch In this case it is harmless since it is an array of pointers so the resulting length is identical. Reported by: Coverity Scan CID: 1545055 Sponsored by: Chelsio Communications --- sbin/nvmecontrol/fabrics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/nvmecontrol/fabrics.c b/sbin/nvmecontrol/fabrics.c index c9aca088c47e..d93e984ee7a3 100644 --- a/sbin/nvmecontrol/fabrics.c +++ b/sbin/nvmecontrol/fabrics.c @@ -488,7 +488,7 @@ connect_nvm_queues(const struct nvmf_association_params *aparams, } /* I/O queues. */ - memset(io, 0, sizeof(io) * num_io_queues); + memset(io, 0, sizeof(*io) * num_io_queues); for (u_int i = 0; i < num_io_queues; i++) { memset(&qparams, 0, sizeof(qparams)); qparams.admin = false;