From patchwork Fri Mar 1 14:44:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muhammad Usama Anjum X-Patchwork-Id: 777327 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 CA64F39AC7; Fri, 1 Mar 2024 14:44:40 +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=1709304283; cv=none; b=SypqkX9LN+aQndsPG7CDua9uy+TpaGgWmeXQyjN5528+5I8rLqVLVdypIX50Cb9ruYnDgsC2wT6/LjIPsba9DONordMeX5mEmBDfH+VZE5QtAvJ4ssQgxWbHl5hniIEwz45fdkmE+2c3P+HLx+sEYaoGBrzMOpGcDsy/tVnQBKw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709304283; c=relaxed/simple; bh=qJfz/gwS3bbppBLBLznSkEs8J38LclOY++ed9FAyW4Q=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=rKu5jBLj4s1g8rNVfjO/LvvV9CSRzTThjKNXDSS2+TaS9idtn8nIJyyGqN9Qo3jvm3Ngw3+X+jfhBbnMpkaZNeFbzl7dAt3wRmUrMDfkt3PpppNizkRnNi9rJTAMyygbviwiSrMv1uhXq1s2PuaDDagktczbLDXg2+rSt378+mg= 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=cpR+v1Mo; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="cpR+v1Mo" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1709304279; bh=qJfz/gwS3bbppBLBLznSkEs8J38LclOY++ed9FAyW4Q=; h=From:To:Cc:Subject:Date:From; b=cpR+v1MoxzSyZ6lE2WfINuZwTAYBlrrmfH2fZlwlpqnl3UV5U2zi80Sft1F+wlIza YFi56/dnEPppzFXQYHQZUFdQ1GcGfWZ21JnCZkQU70h9mb/V/4RfMlokhUtpmSc0iV Z+CBGPlKRnOZZ2zpUelWTHlw95mFgjTy9A0dGrBwGBgn38+mBJ/Wqh3aTvvybOEwa/ QLXrwa/gH5x+9UMkXBjoQej74zfqIkCUU6E7+5IzNphg0TDoin1J2xf5dU7O1IHZfc zmEfTUhOmCFe8wDZBPJnIl9KJVTbKUoDp+MTUnxR168XTTMOIt8g9KODpWQNuVjrj4 D8K9pzwWn5ARg== 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 C580C3782076; Fri, 1 Mar 2024 14:44:34 +0000 (UTC) From: Muhammad Usama Anjum To: James Smart , Dick Kennedy , "James E.J. Bottomley" , "Martin K. Petersen" , Hannes Reinecke 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 wqe for memset Date: Fri, 1 Mar 2024 19:44:58 +0500 Message-Id: <20240301144458.2810597-1-usama.anjum@collabora.com> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-scsi@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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)); ctx_buf->iocbq->cmd_dmabuf = NULL; spin_lock(&phba->sli4_hba.sgl_list_lock);