Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1748228lqg; Mon, 4 Mar 2024 02:30:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUjE0Z1AjeekfDwmp9H9cuQsCH2eOkO0DYYPo0sYIe9wgU6JGaUZeKXc+DoNlCPvijOWB7RKa//QTGp1iiHg2hzNvEjyubD3sGYqtG5kA== X-Google-Smtp-Source: AGHT+IFctu/K/pn9FCKzCHtXp7hHFY0R5BYsjzHtNaCer/iReFXQVPhS0441OdtoLw+zea59Vydf X-Received: by 2002:a05:6808:11c3:b0:3c1:9c5d:3a4 with SMTP id p3-20020a05680811c300b003c19c5d03a4mr10065522oiv.34.1709548257555; Mon, 04 Mar 2024 02:30:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709548257; cv=pass; d=google.com; s=arc-20160816; b=WXvTchkNxiL5gZeS76dkg7Vxn3xDa25CuMDMsrd/zVhAWAyDsbkjkQRgFksU7xbZgh Ff4C0Zb3JT3/PIpgCvLWOsOHiC4o3tm0n8WgSMQp+16/lFog7h9C2uPeVtA1DjBVsNSb oITm6HI5uyAhyNduPjkd8CTsLsSGKkwBD4jRCfvhz/AOQ+2qE20bJbZsDrYxR2t4aFBi EM5+yBf3w4uFUhlu8any6GBCI3kLFuLM1XLbRPXt5Q5s825uujdrhAyTFLSd90cTp7lS AcSVARSW1EAiuDDJnyE88ge67drUAAcaUy0b5VaE2MZ+mq+ekW+mi/a6eya8iltOka7g BxrA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=GZVzXPibSusdVsavSwE718xxsVi0JcVqY3K/h+3zKE4=; fh=8OHWZh3NkQd8f930Bm8sE3RW6jqA4Dl6RBQdVlri8/M=; b=ll5J/svule0BijUuzyyntThkbZWPzKnQ45xrT3eQAgJBwCcxRksKv6QcQkfXH2I9GK nr4AlAUKJ0NtBL11qkkeoIf2hsFguZSl8Jmp3gN39Rmq3O+ARdRT1O4FGvQ8TtU2q9AF K31HYNEmeyRJbYrM6aR7oLzX6Dv3Q1gboOjYeEmBAOwCZ9VSHhkmrvEeHlyfFKNjmUhb iUuh/RK2AwB8SZEq/rwx+1MUAx7Y+LuaKASq0c7t5v/GhC27xzxdPV/HexDMyESIRlo+ BB9MI5xOKjQZMu4zLkw7gLAWfwtmnMAtGtwrs6l/SfzhWB6ruSoUaCKVkRFPqdUDMnBv UMsA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=OCgp2CoX; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-90418-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90418-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 205-20020a6302d6000000b005d8b81271dbsi7946125pgc.286.2024.03.04.02.30.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 02:30:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90418-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=OCgp2CoX; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-90418-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90418-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id A77D4B250F4 for ; Mon, 4 Mar 2024 10:21:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66FAE381D0; Mon, 4 Mar 2024 10:19:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="OCgp2CoX" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 28B1936B1E; Mon, 4 Mar 2024 10:19:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709547570; cv=none; b=RDKdyAJ7yEq3X8crlzwUlm1WFnTeuKprkeuoyWRbgB1Y5/TK3vsqMCqCMs3+igDUGIRYDy/p7YtyxCy9Rcs0nHoKH1MlF/848rWtq6AbQ91jYl36UJOmRLwC6V+ZjA9Y25acXQNXPdacewRYSc/d0GjZ8VARDXgY/Qw/mV6wWeQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709547570; c=relaxed/simple; bh=2tdXFc+wFoh0S61YBR4n4vOfCj58NEEN6Q6jc6GNThk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=KfavXTayAyn6kpuFRNaCw0fR+dbhkpTaEivDMlg0Pi8g+jPcw4ZRrZzZjQTbL2k3Q20kXlIlLhEpd9DTdjnx6LyanLv67l5ZXVIhB4+0Sf5X4qf2GbK+UAkOPTrgc3XeWPecdAgYV+7Gy9dKvLLuPN7GijSgzo6V26rPoE9fWO8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=OCgp2CoX; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1709547567; bh=2tdXFc+wFoh0S61YBR4n4vOfCj58NEEN6Q6jc6GNThk=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=OCgp2CoXn9VBAcCUQ1SKG2JEL8s0SMWKGy24jlvKpb/dKePe4RKruvzpHXCG6z1n3 tOnEBCh6oxrM22tJlL1vSKzVJucsYlwj6Z3nkYtjje16hS/Mbsz/oOLhMJh6XQuE27 A455RHb/jX8N97Dnhw5mUq/+RqMxcgP+4U0B2mZP3pZU+pl0wCPdV/t9mrkMqgvurr GYaYa0jGubL2Ne11YhMXUZQpkK/fmEty8jVglek+6LAPjG4GENJxpk9/Ff05V0lBWV EvF1msgkmtALzclCYRpQAVl/yU/VA6T3qgzgpgVx4Ux6hiYG0XWEj96Q8QlzfhghR7 UD6eRH592kUhw== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id C7A8A37813CB; Mon, 4 Mar 2024 10:19:26 +0000 (UTC) Message-ID: <9cb2001f-77d5-47c3-9e8a-588bd83b01df@collabora.com> Date: Mon, 4 Mar 2024 11:19:26 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] scsi: lpfc: correct size for wqe for memset Content-Language: en-US To: Muhammad Usama Anjum , James Smart , Dick Kennedy , "James E.J. Bottomley" , "Martin K. Petersen" , Hannes Reinecke Cc: kernel@collabora.com, kernel-janitors@vger.kernel.org, James Smart , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240301144458.2810597-1-usama.anjum@collabora.com> From: AngeloGioacchino Del Regno In-Reply-To: <20240301144458.2810597-1-usama.anjum@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Il 01/03/24 15:44, Muhammad Usama Anjum ha scritto: > The wqe is of type lpfc_wqe128. It should be memset with the same type. > > Fixes: 6c621a2229b0 ("scsi: lpfc: Separate NVMET RQ buffer posting from IO resources SGL/iocbq/context") > Signed-off-by: Muhammad Usama Anjum > --- > drivers/scsi/lpfc/lpfc_nvmet.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/scsi/lpfc/lpfc_nvmet.c b/drivers/scsi/lpfc/lpfc_nvmet.c > index 8258b771bd009..29bc6cd10fd69 100644 > --- a/drivers/scsi/lpfc/lpfc_nvmet.c > +++ b/drivers/scsi/lpfc/lpfc_nvmet.c > @@ -1586,7 +1586,7 @@ lpfc_nvmet_setup_io_context(struct lpfc_hba *phba) > wqe = &nvmewqe->wqe; > > /* Initialize WQE */ > - memset(wqe, 0, sizeof(union lpfc_wqe)); > + memset(wqe, 0, sizeof(union lpfc_wqe128)); memset(wqe, 0, sizeof(*wqe)); Cheers, Angelo