Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2887380rwb; Mon, 15 Aug 2022 13:20:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR4vYUgIXqr+SZJKJZ6SqyauLlTFSchOhNzozWj+XcTG/7t2nMmkZE/O1BoVrHwEUqM/cJlp X-Received: by 2002:a17:907:3f24:b0:730:b83d:3a20 with SMTP id hq36-20020a1709073f2400b00730b83d3a20mr11578626ejc.271.1660594821276; Mon, 15 Aug 2022 13:20:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660594821; cv=none; d=google.com; s=arc-20160816; b=k1y+CAX99Jxq5R/yVKkOjEvLA3dU5AruFSpcTNAxNhHSoseLoGIaBJIPgU8B0WXBK2 uhY5W3oySb66VjRq5CZa4exJnyAthL7yxqf/R0RZJXv4xrKxhYKnsduLF0pdAOcO8R+j AomBB/4xn7jRuhy9i9pMjuHipGhykdhWTYLeMtFZS/TwLjQ2uNrYccSEUr8fgBX1g9MY wilWu7do/kkYGCRkXsEPphUcrYE8ITtxcu0tSCP4ss99xtmwBok32U3OFX6EW86bj4ge vYNU9xYzeP434KYoMDHq27/XU+T52gozf/O/UXFXC5OF8eDtd1uFlcPyzeJIje2Fa3yW QgcA== 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=FTfJvzka2TkJAfup/I+C6zQT5HAD8gVuTetonx5VGg0=; b=Bh/gvBxaTRo9Yntbmkmy2nUyrGUleMnco7mkIekHFlh5EUYa/saWJ4oTa4xcI2ERdY dsfwSXP8DfvJKVStxClWvqwE4kOvWnRiXi5270mAMQl5rsMJGakI9Mpk/UG2PmPeyBg2 7DsVM08TVl0uc8WD1LZX+fdq5CSvfLKztg2n336meJ1wrMzLiWu71CJHNj+fI+K7ruPA XvGJdRGuPlPW0UHPk1zIpjnh85GMu/lQTIm0KNivI+DqPlk4vSxITvCQdEz+xdpbXJOQ HMMd9LseuuVVpEdbbMp8cYvv1/OlzjZ2Lb6O1g7gQsCxKPATMttyZ/nFq0euC0taa9s1 wHXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="MB/aqPbp"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v15-20020a056402348f00b0043a10e5e81asi8676189edc.66.2022.08.15.13.19.54; Mon, 15 Aug 2022 13:20:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="MB/aqPbp"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240357AbiHOUCW (ORCPT + 99 others); Mon, 15 Aug 2022 16:02:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346109AbiHOUBn (ORCPT ); Mon, 15 Aug 2022 16:01:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 596117C1B6; Mon, 15 Aug 2022 11:53:48 -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 dfw.source.kernel.org (Postfix) with ESMTPS id F33EE61228; Mon, 15 Aug 2022 18:53:46 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04CB0C433D7; Mon, 15 Aug 2022 18:53:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660589626; bh=GSRSy1yZuQhA2CaBbz79GviUyu39lfhsVDrX4xOYh84=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MB/aqPbppJptO5MIb12Ixghb7OQ7XflOyjGfmNVIGVXvx3kbfjtjKrMchr6d0EkKo +Tjvr/Jg/zCJj3hN94uCg3DRwwwCkt07HGYPRwDJIEvLfInYtTdZSW7ELV8m4H/DmZ YK2Cfu2SGgtObx87K8DcjIEcP8tTR4GeD3WP45hA= 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" Subject: [PATCH 5.15 778/779] scsi: lpfc: Fix element offset in __lpfc_sli_release_iocbq_s4() Date: Mon, 15 Aug 2022 20:07:02 +0200 Message-Id: <20220815180410.626739527@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 commit 84c6f99e39074d45f75986e42ca28e27c140fd0d upstream. 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: Greg Kroah-Hartman --- drivers/scsi/lpfc/lpfc_sli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/scsi/lpfc/lpfc_sli.c +++ b/drivers/scsi/lpfc/lpfc_sli.c @@ -1384,7 +1384,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;