Received: by 10.213.65.68 with SMTP id h4csp2117830imn; Sun, 8 Apr 2018 20:08:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx49CrhSEEIBussmVGWFJ1aogcsgSvXsCJDMfcIAmakw7vGueALkLU5F++l7t4JM+Tt4KGtKn X-Received: by 10.99.119.2 with SMTP id s2mr17547996pgc.436.1523243338609; Sun, 08 Apr 2018 20:08:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523243338; cv=none; d=google.com; s=arc-20160816; b=cJr7FN6yFH+FLwkdJwkZRXv3hyWyCDBTu3H8RI1pGxOriKtQbAjopM1jjeL4Kz0e16 06gSqRK0GvtRsbPUoKNkhXWrFrzBrU9eSTWum3VbfjlrWmTGGNzzb+d0TZUvFVutylNY XWGuEybhQMmHC6vX/aHrf8HudAEt3xwfyoHytyOMJ58He2Znj9YZP3c2tukV2KJmE4Nc bQrHfZnmgpWeNxIvrcZP3sEntElOYxcWIUiAVjPpUdMpRfW+8UBtEX/NGAl/qK4GxhI/ W1q5uwaMcwtWUD2HrCpccyVlzV6R7XBMG5oCdL0XxYJZJHaEo148zM74L0cJKtT43VUt w5pg== 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=qFZ8n2jHjm5tcAdD52VgAqKHNRH7kgW95kBIABH17JU=; b=Mza30AJJY1JnvtOmkJ7r7ZadPzY8hXIv8/EunOLoqqxK9LPRslUnvKGzOVFYMpH2FH Pv0Fv8U6Uiads0z7rdHitQzbgN2thylfE44w6tSUIvPO24Wm3ttmNSk2O81Hn3+hte8b dsnASSD33ygD+thpZ3dY2a6Mfc7MQ2tfP8TQVLkHcPKfmWSfSwoV8ATPPaWGaI8bwFx4 7D6pXzmHXVqDq9xR6IXbdEav45WWIYGa0n6siFzffungEB1kCvvXG9W5pz0rEKtB0aQX TCddjQ8r2Hk9ka9Ua+9SmrHSigRBNyy2Gigq5cCcu4kdT417OiAga55hpAmCqIR2zCWg 45oQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@microsoft.com header.s=selector1 header.b=M1fBgefp; 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 a190si10715917pge.436.2018.04.08.20.08.21; Sun, 08 Apr 2018 20:08:58 -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=M1fBgefp; 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 S1757931AbeDICRl (ORCPT + 99 others); Sun, 8 Apr 2018 22:17:41 -0400 Received: from mail-dm3nam03on0104.outbound.protection.outlook.com ([104.47.41.104]:17478 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755657AbeDIAa0 (ORCPT ); Sun, 8 Apr 2018 20:30:26 -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=qFZ8n2jHjm5tcAdD52VgAqKHNRH7kgW95kBIABH17JU=; b=M1fBgefpFm7U7aCJALKIgFKH3BS06ZA7Q9x4qLHGkZ6x38CQdxZtQXg8apty1tQrjCAV0tDCVmT/TXcHEcIg6iaY+OK3oCDw5Cf4SfcLoOZHvy1o+7N21pozQZi4rIzjpgLrTRct1EGBXd62tCdF0pv50HeggCFtQL7S4HsPwgs= Received: from DM5PR2101MB1032.namprd21.prod.outlook.com (52.132.128.13) by DM5PR2101MB0807.namprd21.prod.outlook.com (10.167.110.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.696.3; Mon, 9 Apr 2018 00:30:22 +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:30:22 +0000 From: Sasha Levin To: "stable@vger.kernel.org" , "linux-kernel@vger.kernel.org" CC: Emmanuel Grumbach , Luca Coelho , Sasha Levin Subject: [PATCH AUTOSEL for 4.9 133/293] iwlwifi: mvm: reset the fw_dump_desc pointer after ASSERT Thread-Topic: [PATCH AUTOSEL for 4.9 133/293] iwlwifi: mvm: reset the fw_dump_desc pointer after ASSERT Thread-Index: AQHTz5kjBR7/Bc7o7kKYdtryYosB+w== Date: Mon, 9 Apr 2018 00:24:36 +0000 Message-ID: <20180409002239.163177-133-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;DM5PR2101MB0807;7:2vfOyOiIe/iooAoxhPzEgGyxiuvB7BZ71xuxfISrLhoGs2G+gQd8OrTj0HgEDFM39xmiZ0vrtxQ+1kGZwr2cDYm9Jlo2zv+Ga/eCVJYYN7FRTAR2pyjmCJvHVHdNt55P0YdV6qZR1cNieqnib70x8RyIRHemHFbx9Ty0uHLrmyN+iv2iEkkkDsp3l837v+nt28yxIo383j9q2oSsZkkf4CvZKjrG7oIGsNHzj2bcY1/Y2MXkRN/y+lsqP7ukQpMw;20:e9I3sANogwnwC88+xRdMbss6cGDeVFAwegWBuzxK+EtA9VakWpSZSl7OtDdjHYesdPeCTUavgqzQO4Aq1wCSR4NwzZ4YrhHh+6GCy86LD6MX0jCzAGn9BsTrJj6hDsm/Jo+C/TeWamlRdwYvOipMt2L7WJpwQLhVm5wmYkmZTwU= x-ms-office365-filtering-ht: Tenant X-MS-Office365-Filtering-Correlation-Id: 7550288d-7eaa-4db6-3aae-08d59db11490 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7193020);SRVR:DM5PR2101MB0807; x-ms-traffictypediagnostic: DM5PR2101MB0807: 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)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231221)(944501327)(52105095)(3002001)(6055026)(61426038)(61427038)(6041310)(20161123562045)(20161123558120)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011);SRVR:DM5PR2101MB0807;BCL:0;PCL:0;RULEID:;SRVR:DM5PR2101MB0807; x-forefront-prvs: 0637FCE711 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39380400002)(39860400002)(396003)(366004)(376002)(346002)(199004)(189003)(14454004)(4326008)(54906003)(25786009)(53936002)(2900100001)(1076002)(3280700002)(6486002)(186003)(2616005)(68736007)(110136005)(11346002)(10090500001)(6116002)(107886003)(3846002)(36756003)(8676002)(72206003)(22452003)(66066001)(26005)(6512007)(478600001)(3660700001)(81156014)(86362001)(81166006)(86612001)(7736002)(305945005)(8936002)(10290500003)(6436002)(105586002)(6666003)(316002)(575784001)(76176011)(5660300001)(476003)(106356001)(2906002)(6506007)(446003)(2501003)(99286004)(5250100002)(486006)(102836004)(97736004)(22906009)(217873001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR2101MB0807;H:DM5PR2101MB1032.namprd21.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: TBFdoo6FozULUHs7HUzPjAf9WUMly8IOJUdU5AnVmryozfTYjXy4P83O6hO8zqzp107/iWMrz3JTpPp1390JDlASouGT0C9nqieTPaOLvJxLNZFZtD/mfDJyHiCxCeiHPDf5AF2lck9JogFJ8w1R/xhvHCODiKtG+l+iePOSoP1S7ZMdw/QKKM7wJY/E6sdGLqzyQJWK3BSBXdjWx+P2rzh74QbnilhMlM9etWuIhzEUBO7JQQEnWXyFihxdE9ocjtNz4mhV148p/9jxjXcH5HCVp9uX7uRCLW47CkBp5yQkuUNiiibbYnzhdD1aV9yMw4uhZtQsiIzBcmf5SMk+TQDwZnxK5WOtsKYbwX9WKtQlNlc3cubFUt8F/JOerlpYkI16EO3tY3R6AEgWkY3vhlU1iKtp67rUJVT/tFWQtwA= 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: 7550288d-7eaa-4db6-3aae-08d59db11490 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 00:24:36.6125 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB0807 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Emmanuel Grumbach [ Upstream commit a509a248bb31ea013c4c2b6801297a2d82eecd43 ] When we get an ASSERT, the fw_dump_desc pointer points to iwl_mvm_dump_desc_assert which can't be freed since it is a global. We still need to NULL'ify the pointer when we call iwl_mvm_free_fw_dump_desc otherwise we will hit int iwl_mvm_fw_dbg_collect_desc(struct iwl_mvm *mvm, const struct iwl_mvm_dump_desc *desc, const struct iwl_fw_dbg_trigger_tlv *trigge= r) { if (WARN_ON(mvm->fw_dump_desc)) iwl_mvm_free_fw_dump_desc(mvm); Fixes: b6eaa45aa18b ("iwlwifi: mvm: add the cause of the firmware dump in t= he dump") Signed-off-by: Emmanuel Grumbach Signed-off-by: Luca Coelho Signed-off-by: Sasha Levin --- drivers/net/wireless/intel/iwlwifi/mvm/fw-dbg.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/fw-dbg.c b/drivers/net/= wireless/intel/iwlwifi/mvm/fw-dbg.c index 700d244df34b..bec32cd0be76 100644 --- a/drivers/net/wireless/intel/iwlwifi/mvm/fw-dbg.c +++ b/drivers/net/wireless/intel/iwlwifi/mvm/fw-dbg.c @@ -331,10 +331,8 @@ static void iwl_mvm_dump_fifos(struct iwl_mvm *mvm, =20 void iwl_mvm_free_fw_dump_desc(struct iwl_mvm *mvm) { - if (mvm->fw_dump_desc =3D=3D &iwl_mvm_dump_desc_assert) - return; - - kfree(mvm->fw_dump_desc); + if (mvm->fw_dump_desc !=3D &iwl_mvm_dump_desc_assert) + kfree(mvm->fw_dump_desc); mvm->fw_dump_desc =3D NULL; } =20 --=20 2.15.1