Received: by 10.213.65.68 with SMTP id h4csp2121779imn; Sun, 8 Apr 2018 20:14:22 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+FZjcoiaKEUoALL+5xmxV8dY+x6119pMr630gkuWIEQKzqrk361tkP/0WmUKl1CScVvx9h X-Received: by 2002:a17:902:8c83:: with SMTP id t3-v6mr37200594plo.391.1523243321785; Sun, 08 Apr 2018 20:08:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243321; cv=none; d=google.com; s=arc-20160816; b=ofd8w89NPA9vT2eqU9xNDe8RVqXBl11JJ4Laq3Q4ZKIY4WasfKQN8qR330jsghCvuX WOKwuNrw8+OGUQZjquRzM95e9xJiyz/zQUSIook8ruSGyqCyHv0725YXy1d81iZZR1Qt PS40njeJXH0Kpr7NF+rqnlzARFGy9uCsjP5j9qXnAwsq0pEeHlRCKpYXzjqfax3j8u70 fUJTsZMtRNV0fFSJPSTM0jPzHa/wkWUl81gIDEyNNAMeLm+uSE0lkmuI+UU8vg6ZptZK Kn2zg8q3K1umZmWbJ+G03svcogp45GbR+E+nGq/tlvE64bSB4XY/8p0jNIbdyHgNBhYf Nx7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=XSd65KZaPU1jKjGwj2Jva5Y+pJo9GaobbXogIO3P3tA=; b=YlfG7U69aoM/C/y+HTMLoLTSywjLxTb1Y8KwVT4gpn0vgluhCgkD/T1ID6hZRr9njv y40qG2kQZDngJqSfiOhsiKK+f1wDSmrmEKikHKJXNj6nAbO/Bag+InA7p4rgE9FzafTc uCA2DN+mrL8TlxMIkGEKMjFll7NcjSU/fK75wRFB78EqvErCiH/SOOFbhIT+OnxRHWhq Ltw6qq4noFzN4ycCan/opRrPcM62RvpWka14/GdJoG6MWtsoZfLxkW7T3yPdZUaLBcms zc9IXGvY3ccEOdZIOvni/ZvCKU5b5LCBvFkDhLafcaZ9QrYemSRvCW+8P4F6bd3bEpvu jIgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=GrcarUuZ; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d16-v6si13191160pll.214.2018.04.08.20.08.04; Sun, 08 Apr 2018 20:08:41 -0700 (PDT) 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=@microsoft.com header.s=selector1 header.b=GrcarUuZ; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757838AbeDICHE (ORCPT + 99 others); Sun, 8 Apr 2018 22:07:04 -0400 Received: from mail-cys01nam02on0107.outbound.protection.outlook.com ([104.47.37.107]:40886 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756273AbeDIAbZ (ORCPT ); Sun, 8 Apr 2018 20:31:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=XSd65KZaPU1jKjGwj2Jva5Y+pJo9GaobbXogIO3P3tA=; b=GrcarUuZPUYR1+2hfsEh/Y78b1dHWBq7inKp4U74WUddGyXcg+8AqPo808FVVqouZrRPSDTVrNjBW3WqEwD1QM7LJexCtdqO2N5a+IVDlmDXGUcQbJrFYjme4HYuPy4o9YHz4nIvjtMxnSwkhJS6DVOLr0IMrlqJwMrVutrQsA0= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB1126.namprd21.prod.outlook.com (52.132.132.166) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.0; Mon, 9 Apr 2018 00:31:21 +0000 Received: from DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059]) by DM5PR2101MB1032.namprd21.prod.outlook.com ([fe80::8109:aef0:a777:7059%2]) with mapi id 15.20.0696.003; Mon, 9 Apr 2018 00:31:21 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Johannes Berg , Luca Coelho , Sasha Levin Subject: [PATCH AUTOSEL for 4.9 176/293] iwlwifi: mvm: unconditionally stop device after init Thread-Topic: [PATCH AUTOSEL for 4.9 176/293] iwlwifi: mvm: unconditionally stop device after init Thread-Index: AQHTz5k5yQAPQM1hC0qk7cl5xB3ilg== Date: Mon, 9 Apr 2018 00:25:12 +0000 Message-ID: <20180409002239.163177-176-alexander.levin@microsoft.com> References: <20180409002239.163177-1-alexander.levin@microsoft.com> In-Reply-To: <20180409002239.163177-1-alexander.levin@microsoft.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR2101MB1126;7:RajSuIsMnmi3JkU0HaU4eChQFGBeb76tah2A6U2JpOjqHXIJyMtku0n/3Nuvjbnal64nwAFdFpCgd6dzYBjQ/q3VYOV+ITRZNWkG55BQp2z+5BkfJZSqHxfgqA45tLlRHxzL8bkKYhzYaPGLejJj/gxWalOGL4Y3rUN2sB/AgCHwXb4Smh2vsEspnlZUfRxzyq6RKHYQdYEIEl17RB1cGScD81F8Lv6oX+x5f6ENefvkYM173jeYL/hP8HoSKR60;20:EdpSKGd2UaC6sGvhb+l1RpO9YBIbytJqgTjYqyn8RQ91drOL+NN2YT3KCzMyq33XfwkmvN6dT9nn/edxcTiD37BF3vuB9Hpe/zoH/JXneJfxyQBDTKbDyp4i0w/l7Z/hEnjTYS1l7rw8O8tvwYFtagE2pIed7Rle7bTz8yZgxS8= X-MS-Office365-Filtering-Correlation-Id: 9b003d65-3b92-44f4-2345-08d59db1381f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(48565401081)(2017052603328)(7193020);SRVR:DM5PR2101MB1126; x-ms-traffictypediagnostic: DM5PR2101MB1126: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alexander.Levin@microsoft.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(61425038)(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(61426038)(61427038)(6041310)(20161123560045)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB1126;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB1126; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(39380400002)(396003)(39860400002)(346002)(376002)(189003)(199004)(2616005)(476003)(81156014)(8676002)(81166006)(3846002)(486006)(2900100001)(6436002)(186003)(478600001)(72206003)(110136005)(54906003)(2906002)(86612001)(6666003)(2501003)(26005)(10090500001)(102836004)(6512007)(6116002)(14454004)(5250100002)(10290500003)(1076002)(575784001)(446003)(3280700002)(3660700001)(11346002)(8936002)(25786009)(59450400001)(6506007)(106356001)(4326008)(107886003)(36756003)(105586002)(53936002)(86362001)(66066001)(6486002)(99286004)(5660300001)(316002)(22452003)(305945005)(76176011)(97736004)(68736007)(7736002)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB1126;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: sBLj9uFlw7LhZCRrX0mlHRyePuStaz2vwcRrh6b9bzWRbZ19U+hPemZgAsVDPurqa2w/PotrghqoGzt7NX2pxCJZdHUanmZ3Hp/9L3HUV437eKoZ4nMxVqbFiyztchenvhMVrDyL3YKaxM8AR7NKNKTVaDUzPkvOhZR3RqaHjJF1W3j+ToY9RlqfaMc/+sI02W+mWnHFjugmPWWxlGK754rHm3ECe5yZwgWCP2ypxBIQACbYzziDsecAvsAvUC7LX5YdpFlcu38mUyrTjIvWe22BkpoC4CwKKnGI3hjImWnRFVl6tAFCxIWwvKqoXMYRiIYfsvCQ268CbK4BG68hAIY81k8dfAxhsXctc6GZhsi9BDpuYu7Sl6JHj9YwSGnwZxYvdepnB6P0WQzpPKL/tQ5IndWlPoFR8jWSIHkFidc= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9b003d65-3b92-44f4-2345-08d59db1381f X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:25:12.6439 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1126 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Johannes Berg [ Upstream commit b092c9f25d45972cf401ad8bcfee2429bf189e2b ] In commit b93b1fe3b532 ("iwlwifi: mvm: fix init_dbg flow to work as expected"), the code was changed to make the stop conditional on not having failed (and on not having init_dbg), which doesn't make sense - we should stop the device regardless of failures. Failure to do so is leading to the device being enabled when it shouldn't be, and - if it gets re-enabled later - the new context info code gets confused as paging data wasn't freed. Remove the invalid error condition again. Fixes: b93b1fe3b532 ("iwlwifi: mvm: fix init_dbg flow to work as expected") Signed-off-by: Johannes Berg Signed-off-by: Luca Coelho Signed-off-by: Sasha Levin --- drivers/net/wireless/intel/iwlwifi/mvm/ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c b/drivers/net/wir= eless/intel/iwlwifi/mvm/ops.c index 5d0b9bf8996c..f03d42ea9a90 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/ops.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/ops.c @@ -718,7 +718,7 @@ iwl_op_mode_mvm_start(struct iwl_trans *trans, const st= ruct iwl_cfg *cfg, mutex_lock(&mvm->mutex); iwl_mvm_ref(mvm, IWL_MVM_REF_INIT_UCODE); err =3D iwl_run_init_mvm_ucode(mvm, true); - if (!err || !iwlmvm_mod_params.init_dbg) + if (!iwlmvm_mod_params.init_dbg) iwl_mvm_stop_device(mvm); iwl_mvm_unref(mvm, IWL_MVM_REF_INIT_UCODE); mutex_unlock(&mvm->mutex); --=20 2.15.1