Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp481869ybl; Tue, 28 Jan 2020 06:38:21 -0800 (PST) X-Google-Smtp-Source: APXvYqylMtE9okP5FwPS4CrpZk1N28w6kKzfhFY97BDOaHj3p8hVQ3AoGH41JsBrBzDS4ZeO1xqW X-Received: by 2002:aca:f354:: with SMTP id r81mr2889339oih.90.1580222301049; Tue, 28 Jan 2020 06:38:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580222301; cv=none; d=google.com; s=arc-20160816; b=0z9wxuAtHtl29zV6ifFL5L/MyxvBczImGdEljYkJra6o3bLsUGnd7QO71PqGGZx+OE a4aeGSZ1XEkBNUVZsKxbi/qQY3ZTO30j48XHJgituXBRH6G7fnAbVhaKCXd1RFDS742y FZFxmbUJ315OC0gDK6YTp6WOpGrLQjf1Xh3fwujusBUAO3CHy9x1XwLJPvAr5ut8F1xj drv71bgLmKWRLfF0Bz69EGJvtQ2HKpH4XjkYrWhAoCmC+j8xRaZGrFOkKyfKn0WHyo1F tUGID09GmN9nI1AD0l2heD6zy5VLbnU8P4nlTRqc2kIo4Bd4v6dcQWmuGj2w7fRZOSpU Lhhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OPqu+YBysxSfkSfgkzvr/91SNhU/drlZPn8iq/mhfDQ=; b=mu8apGQS4CEpTQBk0ujmKq8DwG9/9lMc4Cm6AmvhvWFCh2QAltMVa/B/kv1sCixNdQ thuhvqW9rS4ebcxn4poDRsRcE2PJ//jhpwEFLFjB+Bomfst9c27uISXsK2D8/CNI3fOO HtJ++S38/7r34psfgLs1+at3bz83OttwAqn5JnIjaorPgz5J6Ueiv9fEk2KuwLyNx0SC Yu8FV+Tx3erfacMfUDkZAdJ4Zr48NvBhX5PsJmCtUG+AkKQYeVRwHjRlaN3TaVfUcKEQ +8K2gfEuKijIVVCRlstOaZItHrdS396v5x3x5H9jZfgtTbeWYSCe60Ie3k+UttoERp7b /dAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=p0ZZrm+W; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m4si8791841otn.281.2020.01.28.06.38.08; Tue, 28 Jan 2020 06:38:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=p0ZZrm+W; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730534AbgA1OVq (ORCPT + 99 others); Tue, 28 Jan 2020 09:21:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:47176 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730920AbgA1OVo (ORCPT ); Tue, 28 Jan 2020 09:21:44 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 228C624699; Tue, 28 Jan 2020 14:21:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1580221303; bh=PpV52MBBkqaaQBnB7A/QBShT+Hi+PB9fQkUgRK78POo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=p0ZZrm+WiBRzpoY6Dt0VhCF/glzSJmEE1vBH4JD3w4LP7e5HKso5znm5xxz5fmhQP PYp+VI1bi8LQd/jFTaLyKlmIrIq7xNwhJI6mTCj9S0E2hhPon3atQS0T0gj0osoDHX tAnaH2WQd1W33UWZ4+FshvpnGQzhWv+LTNxVF4P0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , YueHaibing , Kalle Valo , Sasha Levin Subject: [PATCH 4.9 170/271] libertas_tf: Use correct channel range in lbtf_geo_init Date: Tue, 28 Jan 2020 15:05:19 +0100 Message-Id: <20200128135905.228000498@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200128135852.449088278@linuxfoundation.org> References: <20200128135852.449088278@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing [ Upstream commit 2ec4ad49b98e4a14147d04f914717135eca7c8b1 ] It seems we should use 'range' instead of 'priv->range' in lbtf_geo_init(), because 'range' is the corret one related to current regioncode. Reported-by: Hulk Robot Fixes: 691cdb49388b ("libertas_tf: command helper functions for libertas_tf") Signed-off-by: YueHaibing Signed-off-by: Kalle Valo Signed-off-by: Sasha Levin --- drivers/net/wireless/marvell/libertas_tf/cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/marvell/libertas_tf/cmd.c b/drivers/net/wireless/marvell/libertas_tf/cmd.c index 909ac3685010f..2b193f1257a5a 100644 --- a/drivers/net/wireless/marvell/libertas_tf/cmd.c +++ b/drivers/net/wireless/marvell/libertas_tf/cmd.c @@ -69,7 +69,7 @@ static void lbtf_geo_init(struct lbtf_private *priv) break; } - for (ch = priv->range.start; ch < priv->range.end; ch++) + for (ch = range->start; ch < range->end; ch++) priv->channels[CHAN_TO_IDX(ch)].flags = 0; } -- 2.20.1