Received: by 2002:a17:90a:9103:0:0:0:0 with SMTP id k3csp11789102pjo; Thu, 2 Jan 2020 14:18:26 -0800 (PST) X-Google-Smtp-Source: APXvYqwwf6gL56X5pRg2mgCvBUddOnXQkSFOAekUba7WLvV5aPPetwESOrdZr48o6mgv9Ykngqma X-Received: by 2002:aca:f5c1:: with SMTP id t184mr3203363oih.23.1578003506762; Thu, 02 Jan 2020 14:18:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578003506; cv=none; d=google.com; s=arc-20160816; b=MomgTGa/xkjZtwQFIAVysf66E9jUV8wkmvg1Wd4BbulSddIwY82uEpTHNbLlgBCkFj REDtzs8C1iSM+10KYwyfAy+7bI/5bvgDfHWMpS/sxL8gGqDX7Zkaqkmj6L9bhkGWQcCB /HOGYN28GXtgb9H3Akkx1bNNHEznO8XApEH1tKLw1lKvwM7b7/82Om9FDYwoW0HreT3d 7GcuihqAlOHQgq5CpinnT+pcWwvi1jsbRsvRXX+yq0uPCqC1sWVQK3JMGsDYKW9tVe86 VWo/kdWBNdwjynmeQzp0evYOiLNXfQD90xzExGlWYeFI+Ae/2nVk9FPKEj3sPDEYdaia uPaA== 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=oRh0cABU5D/nXBJDyb66jE0WM76bOA6XlfwU5hg8srk=; b=iEBrbS2bFkB0VwxNfJZ2rONmhjl02pFOdJfPFQnZAB5PpIL7jaW2Fal+3m98I0mRPG 06fO8SsjYlMPcUGUJMU39U6ffVdt1lRHcDN6NAJi/jD8kNOEWQt2tlnjLjf82Z8bJ9Jn aDd0inDnFHAmKqcAxWzn8kxPOxd+RI+0Q2UxPWBHQkMPcjulpf1+ifap8oLPLLgCe11/ hfxWUu3xfL5/3r4HmAkw+lIekIMKzKbcaZ1njNaxWLhAUA8hpcY9+U8Vf8THEjjBizO4 UaTWQF7M+z4U7hTeOuhHVUEdiy0ByXiQm+1Cwas19DRrgT21HuKAJOxlmEdvLNz3/srP OD6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dWCKOar+; 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 s3si19063579oic.108.2020.01.02.14.18.15; Thu, 02 Jan 2020 14:18:26 -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=dWCKOar+; 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 S1728212AbgABWQP (ORCPT + 99 others); Thu, 2 Jan 2020 17:16:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:57976 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728203AbgABWQN (ORCPT ); Thu, 2 Jan 2020 17:16:13 -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 7777821582; Thu, 2 Jan 2020 22:16:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578003372; bh=BnANX2H2bx29XOoQujs2DDUAJ+FIpRaK3fhFyXIVyA0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dWCKOar+r+tqnxyqDeJVYnoPG9KShgmNEzNoz3QwZ30qG5FohLpee2b15Ys2/FBIJ uaEpRWDmbFJv0hYqv+fxgJTlt/x+HXwOU/NvhpJC9FoC7UFZvfWpCurmLLkRUfbh3l 24GyAMYzlVjnuPLncno14sZj1q1E7SuuiZ5D9D9A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Anders Kaseorg , Luca Coelho , Kalle Valo Subject: [PATCH 5.4 133/191] Revert "iwlwifi: assign directly to iwl_trans->cfg in QuZ detection" Date: Thu, 2 Jan 2020 23:06:55 +0100 Message-Id: <20200102215843.940860373@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200102215829.911231638@linuxfoundation.org> References: <20200102215829.911231638@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: Anders Kaseorg commit db5cce1afc8d2475d2c1c37c2a8267dd0e151526 upstream. This reverts commit 968dcfb4905245dc64d65312c0d17692fa087b99. Both that commit and commit 809805a820c6445f7a701ded24fdc6bbc841d1e4 attempted to fix the same bug (dead assignments to the local variable cfg), but they did so in incompatible ways. When they were both merged, independently of each other, the combination actually caused the bug to reappear, leading to a firmware crash on boot for some cards. https://bugzilla.kernel.org/show_bug.cgi?id=205719 Signed-off-by: Anders Kaseorg Acked-by: Luca Coelho Signed-off-by: Kalle Valo Signed-off-by: Greg Kroah-Hartman --- drivers/net/wireless/intel/iwlwifi/pcie/drv.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) --- a/drivers/net/wireless/intel/iwlwifi/pcie/drv.c +++ b/drivers/net/wireless/intel/iwlwifi/pcie/drv.c @@ -1111,18 +1111,18 @@ static int iwl_pci_probe(struct pci_dev /* same thing for QuZ... */ if (iwl_trans->hw_rev == CSR_HW_REV_TYPE_QUZ) { - if (iwl_trans->cfg == &iwl_ax101_cfg_qu_hr) - iwl_trans->cfg = &iwl_ax101_cfg_quz_hr; - else if (iwl_trans->cfg == &iwl_ax201_cfg_qu_hr) - iwl_trans->cfg = &iwl_ax201_cfg_quz_hr; - else if (iwl_trans->cfg == &iwl9461_2ac_cfg_qu_b0_jf_b0) - iwl_trans->cfg = &iwl9461_2ac_cfg_quz_a0_jf_b0_soc; - else if (iwl_trans->cfg == &iwl9462_2ac_cfg_qu_b0_jf_b0) - iwl_trans->cfg = &iwl9462_2ac_cfg_quz_a0_jf_b0_soc; - else if (iwl_trans->cfg == &iwl9560_2ac_cfg_qu_b0_jf_b0) - iwl_trans->cfg = &iwl9560_2ac_cfg_quz_a0_jf_b0_soc; - else if (iwl_trans->cfg == &iwl9560_2ac_160_cfg_qu_b0_jf_b0) - iwl_trans->cfg = &iwl9560_2ac_160_cfg_quz_a0_jf_b0_soc; + if (cfg == &iwl_ax101_cfg_qu_hr) + cfg = &iwl_ax101_cfg_quz_hr; + else if (cfg == &iwl_ax201_cfg_qu_hr) + cfg = &iwl_ax201_cfg_quz_hr; + else if (cfg == &iwl9461_2ac_cfg_qu_b0_jf_b0) + cfg = &iwl9461_2ac_cfg_quz_a0_jf_b0_soc; + else if (cfg == &iwl9462_2ac_cfg_qu_b0_jf_b0) + cfg = &iwl9462_2ac_cfg_quz_a0_jf_b0_soc; + else if (cfg == &iwl9560_2ac_cfg_qu_b0_jf_b0) + cfg = &iwl9560_2ac_cfg_quz_a0_jf_b0_soc; + else if (cfg == &iwl9560_2ac_160_cfg_qu_b0_jf_b0) + cfg = &iwl9560_2ac_160_cfg_quz_a0_jf_b0_soc; } #endif