Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1744338lqg; Mon, 4 Mar 2024 02:20:45 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWciy73QryITbwDY8HfBc3xch8brsYx5PdPi85C4aR/l3/MWuqEp2QTfOiVIEXYRiXdRiRf2EjJyafA8vHT+TSNez6PGYmeBRO2s5CvvA== X-Google-Smtp-Source: AGHT+IH9S4xMigh8LPOU7/iFLjAsIF9ielxffalr1BT0wkvUIpK+fP/ARVvhpmBsmoYdNBoYUZUQ X-Received: by 2002:a05:6a20:3d8b:b0:1a1:4f25:eda9 with SMTP id s11-20020a056a203d8b00b001a14f25eda9mr4175886pzi.18.1709547644878; Mon, 04 Mar 2024 02:20:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709547644; cv=pass; d=google.com; s=arc-20160816; b=HmZJ/UNSKScsXln8kWO8iAAJZ6MUdhaInwSOXPnYuz5dbrqkuSy/KP9iDYdS85NNm0 V2IuMOmvoMh4dXGuxFeLZxHxcXKiMneESP6OrxQXK2ZzHQWhRW7saeqAfVB50X9FTadx GAGjTMBzE8DqtJhqOCKhC5r9EBPc0qoJKmpzPUCbVayHjQmyOCa/ET0bkncoUgSz1o1o xJFUhAPgN+THXe+Tf5EmekM2XDZajwpIqmHY8i26l2uXPQGrBB+OnRxITynxPCM9AeNh vMo9UbQxi+aXRMq6ranSO9KAxSLJAmqcJDvixGgD0oZT2wS8b9hmFGUAlxpIIQKu3aZ6 mgcQ== 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=9/4G0Eg0RJOujuplAbp5CK24uwBlSuVk3T+hOklaxSE=; fh=UYzDw1Qn/7tILuxiuCzGVqMQdywyN3SVkxW+3vI3Ugo=; b=RdXGqEnccKSSRWRB7WTaM6uhSoXPbV8JGyC6lfdMwDgPqU4pexT1VZTt3pDMZItyCY 0i9WA9WtL7MZ8Go25E1Tdf2uEraMkN+zmjXsSoYY9NU8I5pDfPkjwtEAQBkZ0qKmOc+z wBTnm8IbdnUD05lF8NHSW917w3nsIeaei0JYJc48euN+QoEJvCkj6spWjXBY7DBOylqN Tg/YcHAT2ntZE50haqysD5/LR0OjpEuf1hULxVHZbfCgZmmswGp3qUB6g+U4KD++uA53 2h0Cl07Ng4GjX81nzi516inIt3nrIAbIfl38huonScDmH5LcAUJKmoFHsf6gudCn3Idb kKjg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=fy+hoh8u; 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-90415-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90415-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id t20-20020a17090aba9400b0029a89117356si10006297pjr.176.2024.03.04.02.20.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 02:20:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90415-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=fy+hoh8u; 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-90415-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90415-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 8DFE328389C for ; Mon, 4 Mar 2024 10:20:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F10EB249EA; Mon, 4 Mar 2024 10:18:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="fy+hoh8u" 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 87191225A6; Mon, 4 Mar 2024 10:18:46 +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=1709547528; cv=none; b=qzobJnn3lYXqkOwZbaXMh+soH6z5LyoYN78iqjMLvEtBQlDVdukOBffEnUb0H1wLvf6/oZ6941ADnlH9KdkluNsA7LNCce1q2xZLLsKJGkxwz6DApCEPO6N/PO/8Juu41naTacq0tHa4ZypAynC6ibLstytBUFj4ES91Rwfq3kU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709547528; c=relaxed/simple; bh=PJtcCbs756j5oFqV8d7Qq7eKfaIJxwawRk/fSYxEiHM=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=qYbbknxhqZ+7/RU0ucL1UadXorpDEz9wxd2VFG4Nstkoa7aI7WjzG6fF/itOTRTEs3RsxgsgMU9ZPK+zb1fAkP53Jw8Euk4hIE3E3Im83z1ZBSeP6LyccTNCD3ovdbcAGoPGROKa6edPDXgS5t+6rX1XnR5G0uZUv6vIsl1GDgo= 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=fy+hoh8u; 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=1709547524; bh=PJtcCbs756j5oFqV8d7Qq7eKfaIJxwawRk/fSYxEiHM=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=fy+hoh8uZ7q58A/cmDJN4kWCBUlXzQ98FWQRHMfPBPX0SrMV77ruFj0BztpL4vZ1w hIBZTxwopsvzdNQzjUYlvBasvauZuIykcHJgD+yAgnsAXnvWnKcsTXGwFH9m1M2Ria 1qez2bz8ULvhcxQ/K1ZZ7VqjmaGoxBt8zY6F2eTNSiPdAawtEsvTd9TA3zktMkdlvT eIPv8j6DTBAxGyrfMCCh1lkxXAxGP7RVFhd06Us07/mgPv4xsw86dDubcDJ7NtcGFf kshlX6Pppcd5porjPYRbfBbTfR+QmK4tFB7eBwss5ribf0iyfG1iGM/77Mw/vRasKf +UxC5YPpScNgg== 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 F02FD3781FE3; Mon, 4 Mar 2024 10:18:43 +0000 (UTC) Message-ID: <1244daaf-4b02-4dd1-915d-0e50ef638b6a@collabora.com> Date: Mon, 4 Mar 2024 11:18:43 +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 cmdwqe/rspwqe for memset Content-Language: en-US To: Muhammad Usama Anjum , James Smart , Dick Kennedy , "James E.J. Bottomley" , "Martin K. Petersen" , Justin Tee Cc: kernel@collabora.com, kernel-janitors@vger.kernel.org, James Smart , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240301144434.2809483-1-usama.anjum@collabora.com> From: AngeloGioacchino Del Regno In-Reply-To: <20240301144434.2809483-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 cmdwqe and rspwqe are of type lpfc_wqe128. They should be memset > with the same type. > > Fixes: 61910d6a5243 ("scsi: lpfc: SLI path split: Refactor CT paths") > Signed-off-by: Muhammad Usama Anjum > --- > drivers/scsi/lpfc/lpfc_bsg.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/scsi/lpfc/lpfc_bsg.c b/drivers/scsi/lpfc/lpfc_bsg.c > index d80e6e81053b0..8caf54aa20391 100644 > --- a/drivers/scsi/lpfc/lpfc_bsg.c > +++ b/drivers/scsi/lpfc/lpfc_bsg.c > @@ -3169,10 +3169,10 @@ lpfc_bsg_diag_loopback_run(struct bsg_job *job) > } > > cmdwqe = &cmdiocbq->wqe; > - memset(cmdwqe, 0, sizeof(union lpfc_wqe)); > + memset(cmdwqe, 0, sizeof(union lpfc_wqe128)); memset(cmdwqe, 0, sizeof(*cmdwqe)); Cheers, Angelo