Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp338233lqg; Fri, 1 Mar 2024 06:46:05 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWe+qSFF9CPlNOpSwIM5DfdYzlt6CrcAfTjJHiZ0bvvKVbLTIXjqq/rnAhFoxdUCFGURKzAOXY7CUT+HCa1GPAwgfHjnkfrs1J3e5fHQg== X-Google-Smtp-Source: AGHT+IHTSrdn95dsHQUBBxadTH03mktJMZQQd7i/kB4lYBDIeDJ3v53oZpTeHYo4gkAejzewx7Wn X-Received: by 2002:a05:6358:484:b0:178:fe3e:1e35 with SMTP id x4-20020a056358048400b00178fe3e1e35mr1619788rwi.13.1709304364908; Fri, 01 Mar 2024 06:46:04 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709304364; cv=pass; d=google.com; s=arc-20160816; b=nhtKz7yyYUux6tLk/EyGYj958tyJUQW5pAnD5Q8rs6GWFUgw8LCesQM9bGLUP5TtU2 t74KvdcDD3y1/oXCniH3uwR95B7ZFHO+XX6dpp4iI2bwrtoYYymPF/pVavI8QACvXsBv PD9Z7D4DJNYfqBpzAFNnqybC2O2QnF+zSKJ0TtXmgyFwEhMx6jP/pbFu55E6Ql9cUS7u jZvTiHNZswWHd2X0h9lxoXmefng4nTCFA4UVRtoMdIKGYvUS586OESPQu8+LhXMMdbIW 7tWiynKEDLk4LVLxtu1ENzVySVSvcV0Yz06leujq1jCJOXEiv22B/SUit4c+H/e5k0Y3 7jmw== 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=tngFSi/7Lm47c8pGR1u977N2nKlcciSZX2zmRDXnkOQ=; fh=KjgQo1wrCvZYydXzDdCwRCQBa3U7cwe/h3vhSPRQBtI=; b=pA0z9KNal3QHyVgibib5vh5N1Vsuq5PcKMQ7Yey6iVJ7MGa9UDUwvqn7nqO0vRKKx8 iC2B8pSOSpWnVuj+DmqVdPNM0SkCBPXKClIoB29OUqmBNWoR2oM4cThTc/yfzggEOznn svD84bxgvokwaYtgAwRR3PyCBX3kAKCyk9GYWhUimKeSjGMWGiAGHc+mRN9FYtKT4eeF YougLg7JkJaKGgX41f9hD2xNpIyL+pIzCT2oPxKdGcYD4/cFqme2GtGLRCq7fcjePq4f /yAWfFxdluem5HcgniJpz7qsMSkWmT/d71GJIzLR1U+A5z8CU5/KQBgcmTMBDdJd5KrL cvfA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=cpR+v1Mo; 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-88580-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88580-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id kc7-20020a056214410700b0068fe50183f4si3674326qvb.76.2024.03.01.06.46.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 06:46:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88580-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=cpR+v1Mo; 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-88580-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88580-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9755B1C22483 for ; Fri, 1 Mar 2024 14:46:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1845643AAC; Fri, 1 Mar 2024 14:44:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="cpR+v1Mo" 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 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-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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); -- 2.39.2