Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp338028lqg; Fri, 1 Mar 2024 06:45:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXB+OvfC2iDdTuwYTmDaGdzb71ZDq3E5z4zmSy2zsl7fmLhB1BwDHBMF6YTDMUMRivwiz4rvox30W47B0iNO66j4SHylunKhd5J1INH9Q== X-Google-Smtp-Source: AGHT+IEy5uhEwu/gnpkRQl0bo2HLG5kAG87jcIr9Rqr8KP7lPqEgqNCgYA6DVIP11dFY0O4IGxsN X-Received: by 2002:a17:906:849:b0:a3e:fb26:fc0f with SMTP id f9-20020a170906084900b00a3efb26fc0fmr1447158ejd.65.1709304346838; Fri, 01 Mar 2024 06:45:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709304346; cv=pass; d=google.com; s=arc-20160816; b=t5txpB2j0ebIUpL31ysofODid3M0GOIod3L7Ur+dKcrKkKRRTD9wfbKwWIahmiAfHr oQwY9qYlvu3zFedBjZ//P0Db/qL+LusQOkWrzDM17IFVGGRc83KKZreoPftdFZ9rvMUm TKRQ2qsFZ6T+W1x0+u/YQMowVEL7EtSSh3sjKF+nTtS2ohPYtWfX947ccNmO9Elglr6b +y0fZcqsYxh11Q74x7JZhpDOiLXEHJXARa0ao6fIXAFUaBI2MWgjQZb4uXzL11XBAmtK OOzWwOfO7LrgnlvcDXDYWdJCcEDMR75md3hZz5m3Et5C3UpPlXvMslMc//kGZUQk8+qC VHAg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=9sgmgveX9cZ7uceDFuPGGy7hb7kfU5juW/zu2hj2Ea0=; fh=G1JQDcvZJZ1fI8H2pWZ5vLMfMZtEEwTwrGhyLHhwtJI=; b=kqWO5rRhfE9YF8EZKlrLrLf0NzOifaPaWONjc0Z0fVf6CpmzJFaYp9W6SksJaI/wKM jyH4Y/fHgYwLdoALYrZUeTLuyNbN/yFoKBcBl/67Sqn9uXepcGLLymUZc0T3799/wNlr 02T5uqObVv3nDjR6K7mGNPTypBzgnHYQjNuTz8A4lwnq56aDtIuz+bquABx3nHai7eLi 9uHFnq9HsWBbcYK8+ebUxMViKheZ3BFOFH+QaLxFh1Mp/rwxYahPJ9MPRzknHaGWk6IG 61UbVjczZCVoBI2MLvqC+phI/JM29l8Ka1aA0dNAC6QZZv1pGv7j4Lv6FYIeEMqWFPgG Qing==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=nureRkJd; 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-88579-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88579-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id f15-20020a170906494f00b00a449f94c9f6si341432ejt.95.2024.03.01.06.45.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 06:45:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88579-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=nureRkJd; 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-88579-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88579-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4310B1F24FDB for ; Fri, 1 Mar 2024 14:45:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CDE0B7172F; Fri, 1 Mar 2024 14:44:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="nureRkJd" 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 6197C70CD1; Fri, 1 Mar 2024 14:44:19 +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=1709304261; cv=none; b=gQBnzS4V5GLZLkOFKKDHsW6wRwJYRbQFY0MdggwlQk4LQF4+qHqHc9/TspSrD8L1XJOOD/xvoM1B5oylIY5537m91JalAy4mAgnD0p1tRPebknUKntICAurQ18ew23OokrU1B8v8FG9/2DZLE2FZOEigcGc68U/tmH6RObN14vQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709304261; c=relaxed/simple; bh=8yuh0XAoNI9OAiTz2X7WtSEmZYmZer2dp7rFHu/FS3w=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=bv1j3mrbOSwh/ryVEcrNZ+dbNIxZnQ+Zuap89fv9Ksm856HSnxH9vsFbRJDTbloKWeQSEMwjMObumY2DHvsgxFBb4PRxhQYyRuHgs6DDrNNP6hlNNfq6khUfwFTFDNIQZ8HcfdR3Bt4fFV2pi+npC2Ae2M7vb2/naHGbUD/HX2I= 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=nureRkJd; 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=1709304257; bh=8yuh0XAoNI9OAiTz2X7WtSEmZYmZer2dp7rFHu/FS3w=; h=From:To:Cc:Subject:Date:From; b=nureRkJdA9S0y+ABeJGshg3YZBc7bEV0qmW+Kz9rJ8kq4muqUuX6cY9oBiEq/0b3a 7aXSh1cS216OxqcaIp3EbaOPFnIxvMNmbR4AJ4AecHnYVRp7f5I7PZa1jn8WZh0nPW zb2evCkXLsvyMC/R+qwofEUNNXLP2/cWoFiYO9LKpveFmU8kbP3+C9VTSDoqvY0lOM O+BrwEvycA1IBSk1jjvMfwG8iHZMLsnNkn4ilWNb/NF4W5UjCKu5jY3oCJ4Vrswt32 mE32TA0AU1d4uo9N2tCJVYMy+PhUNvQ1+aIRpzaHrwbCeOmFdYmDuawWErirgMZB1J IeJnMvsNbRlGg== Received: from localhost.localdomain (broslavsky.collaboradmins.com [68.183.210.73]) (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) (No client certificate requested) (Authenticated sender: usama.anjum) by madrid.collaboradmins.com (Postfix) with ESMTPSA id B62C537803EE; Fri, 1 Mar 2024 14:44:14 +0000 (UTC) From: Muhammad Usama Anjum To: James Smart , Dick Kennedy , "James E.J. Bottomley" , "Martin K. Petersen" , Justin Tee Cc: Muhammad Usama Anjum , kernel@collabora.com, kernel-janitors@vger.kernel.org, James Smart , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: lpfc: correct size for cmdwqe/rspwqe for memset Date: Fri, 1 Mar 2024 19:44:33 +0500 Message-Id: <20240301144434.2809483-1-usama.anjum@collabora.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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)); if (phba->sli_rev < LPFC_SLI_REV4) { rspwqe = &rspiocbq->wqe; - memset(rspwqe, 0, sizeof(union lpfc_wqe)); + memset(rspwqe, 0, sizeof(union lpfc_wqe128)); } INIT_LIST_HEAD(&head); -- 2.39.2