Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2152864iof; Tue, 7 Jun 2022 21:31:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0oV8QQdyFRvVu/4pFrmcujlG/oSfMqFUSQVr8FKByldWsOGcIXh1wvHQxlk9LBYmLZ4CJ X-Received: by 2002:a17:902:9f96:b0:163:dc33:6b72 with SMTP id g22-20020a1709029f9600b00163dc336b72mr32578715plq.34.1654662681776; Tue, 07 Jun 2022 21:31:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654662681; cv=none; d=google.com; s=arc-20160816; b=tRUVHfj3+Tv6VSpCSqarkk2k+IvlHeAA4O9Lh3BfhTd53aT1fOYfyeq+WGcFiCl/RO EBCjQs0v4amf6Tk+0SrIQECjrNkguY1N6CKCxZ2IFucfo6WO3VgKgDdFWAiyQi+JISRZ YG2Cjqi9LP3GT95XqlymgHCUe1/AbriZ+dYGbcUQ+S30t8au9wwKGf4Cgk+B82wAtIFA w+yG4wye7yl3ZHVz+vctc1uwH9HdSoMWJYyUH6bGzj/M5FZCFRuSvz3Nih7ExA2NBuB9 YE+14ogCbXtw2CaKY2fqmKcuvKMt35KJN9KLBCtH5+8Egsm1LAGyxPjnoR6iC/BPzvi+ vMnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=MrSYrQZ45ePwjq2Lx7FUPTyv/95xd3etFQ81qYBmO80=; b=laPNdtr6wSZZodPsq+QtNra/yXuvFslKMKIKG5+1T6aNWPLyADlxII8LxH5jsj6Ir5 DldDN6eruDavfgO1r2IzS7BIju11dk9gPDzYvsjJKJURFciiAoOsvXW0IBZXOvdn9un5 lApHQG+Ty4VvE54dk4mVcWe4injs8GwwbZygKxAS+Cywg6pTbw2Hl/TZY2Buh9joTbc0 Rr69KdeKn7V4kxTVHklWzWCvdCbgXOtJ1vQO+E33eDImM+3pyUNewXfnNMQ9w7aZPpDo 1Zpk5TErwL4gSbz5iHGEFPrlLk1erj63TY3FjRAk6IIHvMLPUDLTbRAEbl67Y/kBgru+ oVYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VDJxY3e9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id 145-20020a630597000000b003f5f0a397e6si27278479pgf.814.2022.06.07.21.31.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 21:31:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=VDJxY3e9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E4C604272D9; Tue, 7 Jun 2022 21:00:28 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387042AbiFGWtu (ORCPT + 99 others); Tue, 7 Jun 2022 18:49:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45296 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381409AbiFGVkm (ORCPT ); Tue, 7 Jun 2022 17:40:42 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F1518232A41; Tue, 7 Jun 2022 12:06:50 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 4A47EB8220B; Tue, 7 Jun 2022 19:06:49 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A77A1C385A2; Tue, 7 Jun 2022 19:06:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628808; bh=Z7yu1bDK0mC1xruvohs/rezvFKpeCucwSrm7QYxW3E0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VDJxY3e9gLYQQHpFpkR/MURYvI7KsG9dbyVF6c7gwHEgmUq7KJe0D07kjIXkOJOjQ uiGnE1CnUCchQbEoxpZQrM3UJoEHc1Guixc9n1w3Qf5edL5iwo1bQw+KtkKOg7oEe7 piV10xFV2jCq/WwSS7L9xPOltsgAvnx3xa8b8F7g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Justin Tee , James Smart , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.18 412/879] scsi: lpfc: Fix element offset in __lpfc_sli_release_iocbq_s4() Date: Tue, 7 Jun 2022 18:58:50 +0200 Message-Id: <20220607165014.821351437@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: James Smart [ Upstream commit 84c6f99e39074d45f75986e42ca28e27c140fd0d ] The prior commit that moved from iocb elements to explicit wqe elements missed a name change. Correct __lpfc_sli_release_iocbq_s4() to reference wqe rather than iocb. Link: https://lore.kernel.org/r/20220506035519.50908-2-jsmart2021@gmail.com Fixes: a680a9298e7b ("scsi: lpfc: SLI path split: Refactor lpfc_iocbq") Co-developed-by: Justin Tee Signed-off-by: Justin Tee Signed-off-by: James Smart Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/lpfc/lpfc_sli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_sli.c b/drivers/scsi/lpfc/lpfc_sli.c index 11f907278f09..c307f551d114 100644 --- a/drivers/scsi/lpfc/lpfc_sli.c +++ b/drivers/scsi/lpfc/lpfc_sli.c @@ -1373,7 +1373,7 @@ static void __lpfc_sli_release_iocbq_s4(struct lpfc_hba *phba, struct lpfc_iocbq *iocbq) { struct lpfc_sglq *sglq; - size_t start_clean = offsetof(struct lpfc_iocbq, iocb); + size_t start_clean = offsetof(struct lpfc_iocbq, wqe); unsigned long iflag = 0; struct lpfc_sli_ring *pring; -- 2.35.1