Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BE20AC43387 for ; Mon, 14 Jan 2019 22:10:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8E73E20656 for ; Mon, 14 Jan 2019 22:10:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726708AbfANWK2 (ORCPT ); Mon, 14 Jan 2019 17:10:28 -0500 Received: from mga03.intel.com ([134.134.136.65]:64804 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726618AbfANWK2 (ORCPT ); Mon, 14 Jan 2019 17:10:28 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Jan 2019 14:10:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.56,479,1539673200"; d="scan'208";a="134563957" Received: from orsmsx101.amr.corp.intel.com ([10.22.225.128]) by fmsmga002.fm.intel.com with ESMTP; 14 Jan 2019 14:10:27 -0800 Received: from orsmsx114.amr.corp.intel.com (10.22.240.10) by ORSMSX101.amr.corp.intel.com (10.22.225.128) with Microsoft SMTP Server (TLS) id 14.3.408.0; Mon, 14 Jan 2019 14:10:26 -0800 Received: from orsmsx103.amr.corp.intel.com ([169.254.5.210]) by ORSMSX114.amr.corp.intel.com ([169.254.8.248]) with mapi id 14.03.0415.000; Mon, 14 Jan 2019 14:10:26 -0800 From: "Gix, Brian" To: "linux-bluetooth@vger.kernel.org" , "Stotland, Inga" Subject: Re: [PATCH BlueZ 2/2] mesh: Clean up when finishing the Join call Thread-Topic: [PATCH BlueZ 2/2] mesh: Clean up when finishing the Join call Thread-Index: AQHUqiBJle42MdWcgkGoSJi95SdKRKWv3cAA Date: Mon, 14 Jan 2019 22:10:26 +0000 Message-ID: <1547503824.32139.1.camel@intel.com> References: <20190112024055.9967-1-inga.stotland@intel.com> <20190112024055.9967-2-inga.stotland@intel.com> In-Reply-To: <20190112024055.9967-2-inga.stotland@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.251.134.233] Content-Type: text/plain; charset="utf-8" Content-ID: <15CF3306AF083647B9FA61760F3C28B4@intel.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org DQpQYXRjaCBBcHBsaWVkDQoNCk9uIEZyaSwgMjAxOS0wMS0xMSBhdCAxODo0MCAtMDgwMCwgSW5n YSBTdG90bGFuZCB3cm90ZToNCj4gQ29uc29saWRhdGUgbXVsdGlwbGUgaW5zdGFuY2VzIHdoZXJl IHRoZSBwZW5kaW5nIEpvaW4gZGF0YSBpcyBmcmVlZA0KPiBpbnRvIGNhbGxpbmcgb25lIGZ1bmN0 aW9uIGZyZWVfcGVuZGluZ19qb2luX2NhbGwoKS4NCj4gDQo+IEFsc28sIGFkZCBjaGVja3MgZm9y IE5VTEwgZGF0YSBpbiBjbGVhbnVwIGZ1bmN0aW9ucyBmb3Igc3RvcmFnZSwgYWdlbnQNCj4gYW5k IHByb3Zpc2lvbmluZyBhY2NlcHRvci4NCj4gLS0tDQo+ICBtZXNoL2FnZW50LmMgICAgICAgICB8 ICAyICstDQo+ICBtZXNoL21lc2guYyAgICAgICAgICB8IDU5ICsrKysrKysrKysrKysrK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