Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3023781rwb; Mon, 15 Aug 2022 16:21:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR4iHBcqC7Ap3QriHtrB+8tnIh5tF3Gh8FXERspuOvdvLcHfawwe08Xk6riGI4mPu1w7sXQ4 X-Received: by 2002:a17:907:28ca:b0:730:aabe:2e28 with SMTP id en10-20020a17090728ca00b00730aabe2e28mr11846580ejc.72.1660605603721; Mon, 15 Aug 2022 16:20:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605603; cv=none; d=google.com; s=arc-20160816; b=R9fgvltVeLzo5OWrQko29u9/iyKf/Cp9Dk4SkGwNOsO1+tyFywkAnm8P6EdRAePIBh v96FyR+4UjpSRaBa+07SwzpytyjyOeo5fWC9wUs8iBKLZgbiifBGLRyGg50rfmb9+gQD ApoK6pZXZllkhPRpbefC0xpEkRP5ltpdsQYKeVE2+sgXP74Q/envK6jDhNWfWB9K2ALe 3cruEyPT7C7gww3U1oyM859wT0Y7owDWn0wsgdhhiJsEVlj2qz2nCzbDCCBk1AxnCB8E TvSXoAgnL0+KfMDJkjZTQ8yrghMqvbDfXgnsRr32FdVV8b1S6DN1i3ox/zP/v8ay1W4n lKjA== 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=OFnXRpzDu3kMkz1qfELLQjlCaIOBbrv3FRZdQXPrtcQ=; b=PBxGI986TGsFJdAtBcpb51gtKCBcLy16vkQ7GjV4t7kTd7QUu0CKE5urStIy5OYJCN fePFD7m/99cR2jkTAoR6LBvuzn7Pg2o7wFKnYLnfIoD2gl2cAPnh3sFIsvZlCwtU6ABk HNYAJJ31jgBulcDpmga1CyCdOreqcYF5un83WwXoh179QPm0QMUuVWd95NdbioU34tcs pzVshexNr9ng/fHTbFbTXZwh2/oyKLC1NDUhAxCmxsX4Jqu/VjiWuXbJDrUxdRrug2KH 5imz/3r3AvygheP+P8ihMc+FZquHkWfzH97K0UjNLeeUGsnaxcXik/U+SslZ5p+mjryS fScw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=V3rsYfWn; 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 cw9-20020a170906478900b0072b61694e92si10470800ejc.350.2022.08.15.16.19.38; Mon, 15 Aug 2022 16:20:03 -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=V3rsYfWn; 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 S233468AbiHOWFX (ORCPT + 99 others); Mon, 15 Aug 2022 18:05:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241861AbiHOV75 (ORCPT ); Mon, 15 Aug 2022 17:59:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1A8BE29; Mon, 15 Aug 2022 12:35:16 -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 A304F61089; Mon, 15 Aug 2022 19:34:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5A8FC433C1; Mon, 15 Aug 2022 19:34:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660592094; bh=ULVdn1u+eHqJzYIKptQEe/KzAAMdb1EsJ3McvUFHKhg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=V3rsYfWnwQGGG5wmUB3yfESpFCtgvqfmFSg1PKWtzpRouIiK0xrutWTIE+6E+K6Xb iOUrY93RHQU7jPQVEQOnXmyerHvGUnbP5ZbxKGJPT0JcyPgEFSs+7nmzU2C2io0CdL Vh2cI6sFRlENpVhAvQQHO5u638m7tP2HqzW2hhvU= 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.18 0733/1095] scsi: qla2xxx: Check correct variable in qla24xx_async_gffid() Date: Mon, 15 Aug 2022 20:02:12 +0200 Message-Id: <20220815180459.721095427@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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 574251b2e0ef..c914b5df9c12 100644 --- a/drivers/scsi/qla2xxx/qla_gs.c +++ b/drivers/scsi/qla2xxx/qla_gs.c @@ -3386,9 +3386,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