Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2045491ybk; Sun, 17 May 2020 08:30:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWyysYHbQVrWmqe9P8tYLJBTNbvk2yXs/b3l63pGQzhXhTsqvEMLSRLAWV3iv6RlciKlOy X-Received: by 2002:a17:906:ff54:: with SMTP id zo20mr12002829ejb.124.1589729420881; Sun, 17 May 2020 08:30:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1589729420; cv=pass; d=google.com; s=arc-20160816; b=n5nqS56m37Obgo7k+0W/pnWNSHBT5TzUnsWyk2X+7ty663XePdXxfLewGtJc2aO3qA rkEFFpL7ASaonJbX3KdkVwqCow5lwFVjW332x/mzRK5t2R0fAd4g3wsQ+XP0zTC3h+pP pHJt6Al+mdWUyT4sc19Rk8EIzactdjLcsycsTmLy7+3pPwPAsIpSW8ANZKk+kNm0ySit QBtwmiD9HhtcasfU2yqiWJEhpbm0u0z5IyM78YHh3XturNjwKQ7hq5Uk8aPglTXdVREK 0J/T8mjwv87gu8pib48jpKZk+2Nh/02WkDDC5/DWkFJpCb7tANSFiWiGdi6FJ+yOqMHk hfEg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-id:user-agent:content-language:accept-language:in-reply-to :references:message-id:date:thread-index:thread-topic:subject:to :from:dkim-signature:ironport-sdr:ironport-sdr; bh=DcXlZrIqq0IoAmdtvM7c9nq4Bp20Lh8F29BD0KZuU4M=; b=aZpdXSuwNyGBzPrShJeY5VAICZf7vWb3boxmpYdwHf4zSIjBNhrESkhtc3PxpDsOeJ EWTREFB1XGOiLAfrGIcAwEPMglHLbMdj73XuhoPo/HIS5zsBI4r7CPVa1ZOjpufYQSbg KpztKWjaXqcS4Fm0ITl8NZ9dUVpIAh0LZdXv7xBfczWnGiB1YdBBTTvIOHnNCiXfipDI Klhp4k7govdkFBUy/JXvbzSqDsqa6Ex1WdZJq4tWXjJv//BUA/wap22p4LkUpji0IUUY tNtsA3C8O1E2cAlles4lLtgGnS+UbaS5DNa+I5Pj8yJThR77Aqp1m3dICTZxj93agyzc XP7w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=WRxpTGaF; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p92si4786243edd.321.2020.05.17.08.29.34; Sun, 17 May 2020 08:30:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=WRxpTGaF; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728034AbgEQP1R (ORCPT + 99 others); Sun, 17 May 2020 11:27:17 -0400 Received: from mga06.intel.com ([134.134.136.31]:64470 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727981AbgEQP1R (ORCPT ); Sun, 17 May 2020 11:27:17 -0400 IronPort-SDR: jAl2XK+3TFJ4QzCu0W8iohSwdlgSkTqxMV0qxmqnS1ulgjQxNlopvA8wRKkHsvzDHIW2Il3D7s loaNZEJf7/4g== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2020 08:27:15 -0700 IronPort-SDR: Y5+qlL7VebbJa+FK/WR93rRyrQ5m0lz0+tUQzMvFlQo0nl/no0sZGStm90d/GDGYxvBcB9sOgx 4hjRjQPaLLmw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,403,1583222400"; d="scan'208";a="373154600" Received: from orsmsx106.amr.corp.intel.com ([10.22.225.133]) by fmsmga001.fm.intel.com with ESMTP; 17 May 2020 08:27:15 -0700 Received: from orsmsx158.amr.corp.intel.com (10.22.240.20) by ORSMSX106.amr.corp.intel.com (10.22.225.133) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 17 May 2020 08:27:14 -0700 Received: from ORSEDG001.ED.cps.intel.com (10.7.248.4) by ORSMSX158.amr.corp.intel.com (10.22.240.20) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 17 May 2020 08:27:14 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.174) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (TLS) id 14.3.439.0; Sun, 17 May 2020 08:27:14 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eekLVDWJ2k7MkzH/MWENM/5bKGe8FJ6NxL50k0lXpJpMQ3GkD155DUpKZM9K+HyZvUC6GgS5fGZKwM6J6ZEYgL3omWyEKR+5V2935P91cpv67YZp6Vf7L2ECygSmBvI5iobi65bxSvEAUE9n8GEg3VQIcDJiqdO9fVCMN/eDPNJBavstD6t1XZykMgl7M/9QLqVgA1Ni3dqVh796c3N/aHHPdCkOD7J3mTuqguLDcsBnQYycYy586tIgc5qiWyoRka3bR8j4M85R8XBRSssZjBvW8lf1ne0vVIJklkAK5/yV+dOiWXW9UUUFK87Mp0vdCvxWFFaJJzj4yGl48KxeaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DcXlZrIqq0IoAmdtvM7c9nq4Bp20Lh8F29BD0KZuU4M=; b=gGhgiebUTPcNC1JLuhA4empN4tmMXZ+Jtq/3h076MT2IqBSUl1PcuyfifxreO7MeaqSV8OAru2novckuaLxrI2GLtNpFb6rE6jDLnuxLsik5i6hp8sT9nppeUgOrDERaCan9t01x9SAOwfzeqF+OkU/2lfS80Yej/37ytJc7Y1zURR6iGw0KL08jEj7ISjWuWQdLbYRsEFggXKoPYsCoGit8RyoXhDTHCUgcIHPnq4cLiizDD8f3Cl9n/tvvNzlsb/qQ/XzGUHTNTNdp9oqrmyMuZurRJ+sIP5zAIW0sJVmLV7ZgaBaZkG57z+6f9bC8th+Gj6T5cm1lJrDPpMNAXg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DcXlZrIqq0IoAmdtvM7c9nq4Bp20Lh8F29BD0KZuU4M=; b=WRxpTGaF4PDxmZCwwRqW9VdnDKCCJIfZxZOoSozRjO/BPBD7toRg+j7fVJvG3/fc7AKTzP/cCfbvAxy9Kt6QLDPY51B/PwA6v7cGLl9EsHnL0PDK7QdfNR3AzuvEjRFeU/Hic4YJoYL8ju2yUPQKVSS3UGwPvF7WXnyTfUrjaCQ= Received: from MW3PR11MB4539.namprd11.prod.outlook.com (2603:10b6:303:2f::13) by MW3PR11MB4522.namprd11.prod.outlook.com (2603:10b6:303:2d::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3000.20; Sun, 17 May 2020 15:27:12 +0000 Received: from MW3PR11MB4539.namprd11.prod.outlook.com ([fe80::5b4:500e:f6a0:1ac0]) by MW3PR11MB4539.namprd11.prod.outlook.com ([fe80::5b4:500e:f6a0:1ac0%5]) with mapi id 15.20.3000.033; Sun, 17 May 2020 15:27:12 +0000 From: "Gix, Brian" To: "linux-bluetooth@vger.kernel.org" , "Stotland, Inga" Subject: Re: [PATCH BlueZ v2] mesh: Fix segfault caused by re-enabling of HCI controller Thread-Topic: [PATCH BlueZ v2] mesh: Fix segfault caused by re-enabling of HCI controller Thread-Index: AQHWKuAxIrcPbFZiPUyBgfsowJx+2KisaYUA Date: Sun, 17 May 2020 15:27:12 +0000 Message-ID: References: <20200515174156.11958-1-inga.stotland@intel.com> In-Reply-To: <20200515174156.11958-1-inga.stotland@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.34.4 (3.34.4-1.fc31) authentication-results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.55.55.39] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 7406b776-4887-428a-297a-08d7fa76c5e9 x-ms-traffictypediagnostic: MW3PR11MB4522: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:6790; x-forefront-prvs: 040655413E x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 3ccZIOafuxxfLT3pXO3wTVTvoUuMdXRkyG0fWeTUbl2huHOPYjYfPcJ/Rt44G8KIFaIfms+m7drX1X0ukvk6u6f5kYJ9IfxquFYQka2bxeCcee6aq8muWrVyNKGC7OYRz7ZtMwGSvveOwF2BZ7CwAONmCFX95Cz1hj7/jfbu4nxuG+WyyepGplzLazmTylQkI2yzAVnI0Ky1miRI0M6cOxPQ+0bXco2GQNVOzLa3r+R2q/1Plr+poRBidUzoXKkFrkyuAW/b5Y3o9VKQBnGhdA2J3sawcpHzjyftf3GG+dW6oJ1nUuWsW2D/rHC2dSI3bFWaMeNRNDfCTobgt47unOM5L6fFaytpaoTBxj5y5DRaykEUWwmcJDdw6JvesLeTvj0Oe/Ku+93dolMsxdJr0GIUITK5BgZDN9P4lAsLiDpVptbZKVTPnUchPK9MbEX0 x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MW3PR11MB4539.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(396003)(376002)(366004)(39860400002)(136003)(346002)(26005)(71200400001)(8936002)(186003)(2616005)(8676002)(6486002)(66946007)(76116006)(66476007)(66556008)(64756008)(66446008)(91956017)(36756003)(2906002)(86362001)(110136005)(316002)(478600001)(5660300002)(6506007)(6636002)(6512007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: HvKBCJWYwMJsWXtf5VVr+YUI7aF52rFbpcD/yNUbjxSNSQFZsU4g+SUHDoVIYVaqAb08zZcArt64BM6agXElOHYr/k7Q2cEiEAP2MxIiFToGy2LIdGV5D+AYaP1ikJwY+IMajtUCEB+XwBwG0shFiW/AQralHQu71CTh51KoHlRbHbYWfMYZKnsOmWeex6dNqMnaCaFd10jc2PoOo494Acvk9m91cn6xqEHZjklEbqFmG3IzG4tjK28Fe7w9x4QT47TbnybQZAiwWe+OrF4b7jCrNaqfr6jTqiF71XsagFY3GNAsF+lhGQ0ju8PVXRZcmQ52ysi833wwHqHSrsmeOus7M0IUkt69GnXRH0tVIjTSgYO113JXD3pxvyhJOSZM4FNNARvtIj2mol2vvYpPwWPRp848BiQJ9hqDOp4iGslKolL0R7miAsntUxlY9GOKEJc8t6/yKb/0NsqNXvwCpvSN1PxWjqvjCWsIIc1ns70= Content-Type: text/plain; charset="utf-8" Content-ID: <8148D97D9EFB1248A6EA588A139A4AD1@namprd11.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 7406b776-4887-428a-297a-08d7fa76c5e9 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 May 2020 15:27:12.8805 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: QfQrJrokiNRPKIoUwNHWT0F0//xwGJGkI2QvR0FeH/C/AvNfueGzGsp0lMQLNP2aqeuK0FTyUcSfF6JKy/acjA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR11MB4522 X-OriginatorOrg: intel.com Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org UGF0Y2ggQXBwbGllZA0KT24gRnJpLCAyMDIwLTA1LTE1IGF0IDEwOjQxIC0wNzAwLCBJbmdhIFN0 b3RsYW5kIHdyb3RlOg0KPiBUaGlzIGZpeGVzIHRoZSBjcmFzaCB0aGF0IG9jY3VycyB3aGVuIGEg Y29udHJvbGxlciB1c2VkIGJ5IGJsdWV0b290aC1tZXNoZA0KPiBpcyByZW1vdmVkIGFuZCB0aGVu IGFkZGVkIGJhY2sgYWdhaW4uDQo+IA0KPiBBbHNvLCBjb3JyZWN0bHkgcmVzdGFydCBzY2Fubmlu ZyB3aGVuIHRoZSBjb250cm9sbGVyIGlzIHJlLWVuYWJsZWQuDQo+IA0KPiBCYWNrdHJhY2U6DQo+ IDB4MDAwMDU2MThlNzU0ZDA0MCBpbiA/PyAoKQ0KPiAweDAwMDA1NjE4ZTZlMTJkOWEgaW4gaW9f cmVhZHlfY2FsbGJhY2sgKCkgYXQgbWVzaC9tZXNoLmM6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