Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp10426272pxu; Wed, 30 Dec 2020 02:16:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzhUA7396QoZPlaRCr7HcTVJBmtbNEPo2Qfax8wETumBGZzlt1CrNQOQQ6mvkMh0yBmjqUj X-Received: by 2002:a17:907:c05:: with SMTP id ga5mr47323473ejc.32.1609323396536; Wed, 30 Dec 2020 02:16:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1609323396; cv=pass; d=google.com; s=arc-20160816; b=lcSC5GwnIAC2ev33fw49Mce2K98zFqqOGqV/m8/qHRXNlJ8IwQUfAKEvFFPkKE9CKd bxOstJ4c8fDuyC5jFgQHz+2vb/G/2LE5vd7hy6p6cdadpYgn3Vlmy1fKxP5JYPJoiuo5 CqHku+gX8aQ7YS3E6AUL+J133zLKdkIwg1wZjN9Pdhcb76AkAyjpc9dVjoJ2RDBm6eLj ZIGLUvQH80EFs0/ZW4pjeAsgp/cRpS4trZASSGgBy2ou3tvpB8AGZMUKqpqh8P+WD1rS HSpL5JyaN54Eu1wJ/ZdMhOVE+MlIudU4MDmtz2gn7FYeu65WkKfZYNMC1qGeQj9xKhYj Y9JA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=QiDEoAcBsdaXhIobckg6LvHIMlrueLV6SXZbFI5/iCI=; b=tf0APL8erXOzQem5ChygcSI9Dzej3nJls++KxLeIImDsqo3rhx1KiorBnUWwbqhnda o2j5Mg+mOXlO5YNyQbkVwa4k6sR0cU2Kg8UwX7PrPIUsCFbMk/wbgVLTkTbLyisqVpQH NoGelbbv3D8WLfV0/0yIM9VVGFGcsuXWqUYeN67+EwbAu0cUe03yrLz0T4CzBwbdyAvF AUXAhhfDNbOTGFGqlOnkFEQ+yhBr5MyHNZm2kUlTn3u/cwuFEK4pIGNkUKOjq11jfKRp dikLZ1gEXWcDAJ9HRdOHepzozeX8S6dEtb3kGIRIfDxeTCrvqzzmSIegtq2LgwEtJnP4 g5Gw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@windriversystems.onmicrosoft.com header.s=selector2-windriversystems-onmicrosoft-com header.b=R+UBpyCS; arc=pass (i=1 spf=pass spfdomain=windriver.com dkim=pass dkdomain=windriver.com dmarc=pass fromdomain=windriver.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n3si22768373edv.105.2020.12.30.02.16.14; Wed, 30 Dec 2020 02:16:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=@windriversystems.onmicrosoft.com header.s=selector2-windriversystems-onmicrosoft-com header.b=R+UBpyCS; arc=pass (i=1 spf=pass spfdomain=windriver.com dkim=pass dkdomain=windriver.com dmarc=pass fromdomain=windriver.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726423AbgL3KPM (ORCPT + 99 others); Wed, 30 Dec 2020 05:15:12 -0500 Received: from mail-mw2nam12on2083.outbound.protection.outlook.com ([40.107.244.83]:4321 "EHLO NAM12-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726247AbgL3KPM (ORCPT ); Wed, 30 Dec 2020 05:15:12 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JEzdcpaPoE1QAqnEM4M9mrE2FofQpZn4ggxG8ALdjV5oQCIuZXedWyXqvsyGnQRhzBmb1hukJ/zwepBdhGZidR1VCn1TOsUuiDtDDd3rIbUpgVE7nWKTDUHJiGrZz6bBOIw2uA7NVdJT5H4jEDgzzpGL0mtfSewh6gGpnAB29izYAToHh8C1i8+U+oLYjszIxrAucIcwKEqifHRDDtodJxJAV/ac7p0lxfvCXm8FeVtCR/bkuy+fFAqTwvk8GFy0h16yp2ZPleEKRFlSE/jhmvPQHv+HWN4Uxrckuf67xskzXin19nbNpcKNu6HmBQpqVGyfD98AEof1sFN54XywVQ== 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=QiDEoAcBsdaXhIobckg6LvHIMlrueLV6SXZbFI5/iCI=; b=IGAD1jXN67JArV4MfYFmBfnkYFP04P24HrTGlMI1Emh3t83fGd8AGb3tIAEX6qzUBsX3gAMZV78hZKKDxY6/9vu/Lh8UoXVSKONiLqfcXPHgZMbUSM0DQc0f0Eo7GebkS2vKOn6nmW7uMtuzCWIGhIElzd0zswLbN5/T8NTs36KmJBMcTIGOogZsU41m7zvsLRL4GAI2ohLw9dQT8K6FHsBQnRqJREK+p7jNb5SwGZIKqYsiuus37o1EN92pB1P7Qyc/kgcLmo/vshrAV7uXMRWWqJvCtzOhX20CpEdyYvKQ4vsgIq6x0wxyCgvyKQcK9CZ/Xslq3DwGVvmwjYwGbw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=windriver.com; dmarc=pass action=none header.from=windriver.com; dkim=pass header.d=windriver.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=windriversystems.onmicrosoft.com; s=selector2-windriversystems-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QiDEoAcBsdaXhIobckg6LvHIMlrueLV6SXZbFI5/iCI=; b=R+UBpyCSxqoBFNP7G68w7+9sTHpqF3FId0Gax1qDcIHPxIJH8GJIQwLvtJSUODi1G/AIWOYZ0waZ8+UBWT1lvtItmF+zShUqmpvRMZP0ss8tphvPGNHHh34ES+p/Wg5NusKnipug2o6m4obsG9pTw/n8M5XROP3WaZOBZATyJAk= Received: from PH0PR11MB5077.namprd11.prod.outlook.com (2603:10b6:510:3b::17) by PH0PR11MB4821.namprd11.prod.outlook.com (2603:10b6:510:34::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3700.27; Wed, 30 Dec 2020 10:14:23 +0000 Received: from PH0PR11MB5077.namprd11.prod.outlook.com ([fe80::564:ae38:9aae:7896]) by PH0PR11MB5077.namprd11.prod.outlook.com ([fe80::564:ae38:9aae:7896%5]) with mapi id 15.20.3700.031; Wed, 30 Dec 2020 10:14:23 +0000 From: "Wang, Xiaolei" To: Markus Elfring , "kernel-janitors@vger.kernel.org" CC: "linux-kernel@vger.kernel.org" , David Lechner , Greg Kroah-Hartman , Mark Brown , "Rafael J. Wysocki" , Julia Lawall Subject: RE: [PATCH v3] regmap: debugfs: Fix a memory leak when calling regmap_attach_dev Thread-Topic: [PATCH v3] regmap: debugfs: Fix a memory leak when calling regmap_attach_dev Thread-Index: AQHW3dCA5Vibwi8iDkqbAod4oyZ3B6oPZl4AgAAD4UA= Date: Wed, 30 Dec 2020 10:14:22 +0000 Message-ID: References: <20201229105046.41984-1-xiaolei.wang@windriver.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: web.de; dkim=none (message not signed) header.d=none;web.de; dmarc=none action=none header.from=windriver.com; x-originating-ip: [192.103.52.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 99658cd3-7caf-4d55-7705-08d8acabae01 x-ms-traffictypediagnostic: PH0PR11MB4821: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1775; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: g4eJFufECR2HX4jtq9zDa1F5jMpNKtS8WqDc8LuxUGUgIJDQ8JF8m8XN7hLoAmXtoepHFbHMARoOgRU1n7Td7fMT6Ge16DxXru8GNcmbO3Del0rp4Jv2PO7Qg/GOCKEmLtlykTYX3ZCSPMPl+mQsbX5uzzy73z/cbAfpq3ye1ATJ2SDj1IgODNZVU6x2JEHU8Tc/MQateqn8z/MGYDqP2howwcUMHbQxYEPP/041nVPxHDPYBiy++/XIIGu669/7g2Dhs9EfsHsE7mC/tmXTfGRnomGFDES49fkdejKl9dowTBLwOJGzB2iW//yiOFolfmPNehCMPxKqR8txuWJktNEM6vt3j6z/2Hx1MOoCU4IxxXFKb7II1O4mx0A2CoY3FiuwEbl22pZRu46xRwheMaVZO5P8HhiK4P4jkze9hBlBpsf9xtS0QSKej2G7Z/8/RHHjGu/cDGvbUaHhJ1EfBg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR11MB5077.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39840400004)(366004)(396003)(376002)(136003)(346002)(54906003)(86362001)(110136005)(7696005)(66446008)(66946007)(52536014)(76116006)(64756008)(966005)(478600001)(55016002)(66476007)(6506007)(83380400001)(8936002)(66556008)(186003)(316002)(71200400001)(53546011)(26005)(33656002)(4326008)(2906002)(8676002)(9686003)(5660300002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?utf-8?B?TGp6TCtHYTRKUUgxNFRzYWJXbWJpVzByYjArTEQ2M1l1SDV3TmpML042UWtK?= =?utf-8?B?cW1lYjFPRE43bzZ0VVRWbGxqcVV6dWNyVGYyQ2FBbkpIU0VYT0ZXbFBOcERC?= =?utf-8?B?aUlkdkNzU1htNUMvZnFlRm10dTliQ0VjNmZsN0xtOGdndnlxWkx6V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LY29tNFBlVUhJOHcxZG54UzRBcXAvVU1p?= =?utf-8?B?Q01QQUFTNnNpZEh6eklKUGxTSjN0aldKS2FtNi9LbjQyR2FJZTM5ODlVdXpI?= =?utf-8?B?Nnl5ZllUZWt5NU1jMTMzSFFKMm83VCtWV3YxSC9adFFKUk1Kb0VKNzJ6UGlM?= =?utf-8?B?SzhsV2x6NlM3Rkhwd1ZsSVJ1M25hcVFUMVkyZno0RS92K3JzUjBndWEyWlhL?= =?utf-8?B?TERaYzdDMTgxWUFSaHhNKzVPZ21rVEFkeGJvbGVzSjEyWGFzMnV4YlYwL2JD?= =?utf-8?Q?N/StVtfiVZXvE=3D?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: windriver.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5077.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 99658cd3-7caf-4d55-7705-08d8acabae01 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Dec 2020 10:14:22.9521 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 8ddb2873-a1ad-4a18-ae4e-4644631433be X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: IcW1/Tf5+brBhCIv+0UajCJXWYrggOKRLd2ajbA9JjZFMytKfV9RemjGwEVGWhq0TgigUX+dJAxiekGglq1JOEOehlR8C67p4ZBJq2PTY8M= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB4821 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgTWFya3VzDQoNClRoYW5rIHlvdSB2ZXJ5IG11Y2gsIHZlcnkgZ29vZCBzdWdnZXN0aW9uLCBk byBJIG5lZWQgdG8gcmUtc2VuZCBhIHBhdGNoIHRvIGZpeCB0aGl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