Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2838014rwb; Mon, 15 Aug 2022 12:19:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR4hPFO7NK2rleSQYZj/BJjFLSqsJWPuRxdSD/IDXEw4+nQAnfo3ssALOytn4QyxUtkcvNsK X-Received: by 2002:a17:907:2e0d:b0:731:7afa:f14f with SMTP id ig13-20020a1709072e0d00b007317afaf14fmr11858706ejc.704.1660591194228; Mon, 15 Aug 2022 12:19:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660591194; cv=none; d=google.com; s=arc-20160816; b=bgXHR+qsUXtcTA4biMC4FXrBECw4eIFz0PKtTsf3PgTEcw6q5I3eqd4iJln9FCPcVh 0nsoYncJUegLhCw3RgjIGuY/PxlxuXSfxe1avA+MslYBG6j534EpmUDp5g7zWrbu5rn1 QSuCpDSmw5soL8ywFiG0D0mvQlUqR4XI4YNT8ubQORfdpjswDzOVGA+TYhFAjIrMuWN4 4vqMjXoqfOT3eD5o95w31vXKep8RsZJWU2UE8HofbUJZG0FP0GxnhbdVXtOiXjYo4xjL 7UzfsmotDFSELNoPePPPSXcd+zKKTUwjNjp9jhawBB5EKUI7XeB6jb6DYU8/rcsm5jo3 dzVw== 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=ZyyNRNn/0XSZOAVgGmEVMX26OGrxp5ejOt7O0reFSX0=; b=YG0MKv3GxyOsaQTPYxVGPyojzOFe5u2Pz++MYMjMVyGD3gQpFurUpaPDezt+v4RHKp 6LoR14+NIghT9pF/+NRSal4/b4fIgLOZUyZVUKrFs5kH/jVVSOCyWItQOqQEavQsAuBD bxRP0Lc68fyzCbijqjwcRV77VVYgULCq6JBsePuzlVQck60Hwn7/L61CTYy0jOJ+gzj1 BJDBjMa96TgyQRCZ0kOeaWkwJzw6DVGb11biujayraA+tyJiS6hNAF15vDEsUSEkswiF xuIi8F9JWwjMXgkekBLYqFSIn6qwrqUpXDuOS8TTP0pyBNC4RPDJVi6K19TCzVuql0Nf Efcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HtpJOKsh; 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 p37-20020a056402502500b0043c1908e995si8339727eda.113.2022.08.15.12.19.25; Mon, 15 Aug 2022 12:19:54 -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=HtpJOKsh; 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 S1343925AbiHOTPi (ORCPT + 99 others); Mon, 15 Aug 2022 15:15:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343801AbiHOTNB (ORCPT ); Mon, 15 Aug 2022 15:13:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 486A95073C; Mon, 15 Aug 2022 11:37:25 -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 320A0610A4; Mon, 15 Aug 2022 18:37:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 388B6C433C1; Mon, 15 Aug 2022 18:37:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660588644; bh=8UyRwPRI9GXPc89UbffERA3S7rsrfc9rjDhGIYxXX4k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HtpJOKshq3UzQwEAIJZ3iqX2HGjcz/lxOPHrgWrz72lOAUsyabGZjUZBAbM/vaZBn aRwcKS8qb30lg8VF11/7bL0fhU91VQpl1lv77vB5qpMXKBtdRkesw8eYVQjQMBC84e T8dLyxpyqyw28zyjaZIZTbYLbJ9fEp3ByDpgw0AQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dan Carpenter , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.15 470/779] scsi: qla2xxx: Check correct variable in qla24xx_async_gffid() Date: Mon, 15 Aug 2022 20:01:54 +0200 Message-Id: <20220815180357.386650944@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: Dan Carpenter [ Upstream commit 7c33e477bd883f79cccec418980cb8f7f2d50347 ] There is a copy and paste bug here. It should check ".rsp" instead of ".req". The error message is copy and pasted as well so update that too. Link: https://lore.kernel.org/r/YrK1A/t3L6HKnswO@kili Fixes: 9c40c36e75ff ("scsi: qla2xxx: edif: Reduce Initiator-Initiator thrashing") Signed-off-by: Dan Carpenter Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/qla2xxx/qla_gs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_gs.c b/drivers/scsi/qla2xxx/qla_gs.c index f89911beaade..2c49f12078ac 100644 --- a/drivers/scsi/qla2xxx/qla_gs.c +++ b/drivers/scsi/qla2xxx/qla_gs.c @@ -3385,9 +3385,9 @@ int qla24xx_async_gffid(scsi_qla_host_t *vha, fc_port_t *fcport, bool wait) sp->u.iocb_cmd.u.ctarg.rsp_allocated_size, &sp->u.iocb_cmd.u.ctarg.rsp_dma, GFP_KERNEL); - if (!sp->u.iocb_cmd.u.ctarg.req) { + if (!sp->u.iocb_cmd.u.ctarg.rsp) { ql_log(ql_log_warn, vha, 0xd041, - "%s: Failed to allocate ct_sns request.\n", + "%s: Failed to allocate ct_sns response.\n", __func__); goto done_free_sp; } -- 2.35.1