Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp10501105pxu; Wed, 30 Dec 2020 04:39:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJwsh/BZUVvA+AjDZqDKitE6pkKbmzQwJ4RD3AgHrzU3jR5A+mWv7sRbq4/o7WpTntxuhvjf X-Received: by 2002:a17:907:417f:: with SMTP id oe23mr47888864ejb.259.1609331955254; Wed, 30 Dec 2020 04:39:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1609331955; cv=pass; d=google.com; s=arc-20160816; b=MrVBc1sFGs6J1bdrtYrb6j87RQTLx1YSwYmOxi6TE7MwZeE0IhcJNAWNLs3akXbqOT fffjWMZEsh81xNn/0wz/PxjqVoObx2TlhOBjK6bWz9jLjDi6hE6qONUAOhzhvKiWYhDS meDsG3Um7kxQSTQP6CNsJglNyMQU82pABosmKCH+cmu7L174Oms7Yl11aFlz0FHCBJih dJjEf9HzJ+XbLF6QpoZvDGbYmyoqpEZX+mpGtPpMvUmbW9yTsgrDMm9BlEQutSpVLy+M +2AEFwJSZmVgEVGfvhXvRtt9B4yUAFc9F9tLfTTGaedXtu/h0+hUuh9czoeNYo1WWgvS hp0A== 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=ZG9TH/bScGYKHawObP/HfOkkIp/+3j34E3MNfHSUi7s=; b=Kkn24KxCvwOoaaFhS0Icu5jIlYqzD15JOq6fmMRcbV712r2UcfmHntYc+YTR+2bRDd dGUq2x5LhGuLqq9uhYhQwwosg1z75nt24fbdqDvAnfquU+gdbL8hQK7mnZzANSsjFnDl lZHv+2cjF7xE3lrCc//PugdKuUndWOA/q678Q7n3dGf93mCRhNT3x+eHfbvF1+oncVSx 9VIbJo3EBu29JTlbN93VG3EYE7bj77Tai1VW00qZBLdP8KR6ZEo7LBScqwXtxcc61XkK GjHIbrfEMfNoJWRJGHM04Ebn/Xp3ws2Jexl/t8G2qhrt3KgiF08ojAo9w01NLhVK7wjm iu4Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@windriversystems.onmicrosoft.com header.s=selector2-windriversystems-onmicrosoft-com header.b="e/jVjGZ+"; 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 w17si23001124edv.64.2020.12.30.04.38.52; Wed, 30 Dec 2020 04:39:15 -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="e/jVjGZ+"; 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 S1726603AbgL3MiZ (ORCPT + 99 others); Wed, 30 Dec 2020 07:38:25 -0500 Received: from mail-mw2nam12on2043.outbound.protection.outlook.com ([40.107.244.43]:57024 "EHLO NAM12-MW2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726203AbgL3MiY (ORCPT ); Wed, 30 Dec 2020 07:38:24 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cN+4fWJmLG35iq+u44C28uueJX0+WsBHmD3tSMdzV35P9o78rclC7Jiib+RIG77L71j0WPN4c1olEYhZ4L43ekFuOReOF537YU/R04+BWDmMtNvadKyHDULhvrw/U/a96ajng0F3WfiXm+YzdBWTasFwobjDxR/nEfGQ+j9QMC/C7D0uhD49VqgMd69QNWN41mIYtCcibvxbr9o8gWz1uMFmzx5yVXIYse1fCXMwLvg0nfBaontBA+rBmIWW1U46DGi0Dxw7gvIDRhIWnWuBlBOCe0FapHn2e4aCL4/rqStpZXWXWf5TsinwmeqOSs0R2+bRV8EY6+KLvTzczoEerw== 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=ZG9TH/bScGYKHawObP/HfOkkIp/+3j34E3MNfHSUi7s=; b=GteBEQhjO4eJoTJlJyGuF8LiFVU8boKtjDWc4AsCuq1i5qmOVFBFlmXwOQVxfJSCGUViSjAx4foISCkNYZITkw/Dc+8N/RKLjdjr+10ZEZHny8/52nns6kKXPtnfELpscaaTAezHd/YeBJDzsbOYRgJvpKuPpbntJjJxlgyAdW/P1sqxtqfvC84CnqMal2nTNwROpJitC/1YfNDkemDVu279BoMDRIhC9Ha7BUKW8uceKt1mTlLCgBY+8YNYu/QOIUri5MXd4O48M2gbDaA3S9Z5NHYtkdClEzhS2w1asRp4P9Q3qZNc3w1gk4D4jSZUBk5ZvyGE0dtzRYwtWopSxg== 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=ZG9TH/bScGYKHawObP/HfOkkIp/+3j34E3MNfHSUi7s=; b=e/jVjGZ+Dfr5rZpz778S8hXZrN82ylNsau45gEVGFrdSFQst9doERs1p+QyqeeczgdmjVzMr6x57NrrGSaAu88zJGYt0icCvnaAH+PAD4RQj84ptdoTDRJxQRswoontC31Kr+huzmOT74lOMOrsxABy/rd01DcH6I8jQYoVEdN8= Received: from PH0PR11MB5077.namprd11.prod.outlook.com (2603:10b6:510:3b::17) by PH0PR11MB4950.namprd11.prod.outlook.com (2603:10b6:510:33::20) 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 12:37:35 +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 12:37:35 +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: AQHW3dCA5Vibwi8iDkqbAod4oyZ3B6oPZl4AgAAD4UCAACEyAIAACI0g Date: Wed, 30 Dec 2020 12:37:35 +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: 80c20558-3561-4dd3-4b9f-08d8acbfaf95 x-ms-traffictypediagnostic: PH0PR11MB4950: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 6b/HjxbmMqBUVOS0TOSyMkwubVyrQxXtM9jXlLWt3TVzUhzzIXfMf/AptTxygpAKUR2MBVACIH9XVjHRCOp4Y9ERKzGSZOKHfaAH522OuKAl5uCNIojsBuE1zJkA5Hd66KXOlLlKBloNru+RAko3pcbXT0EAPz+4sgoNA0MS2csajXJTRgaaOBd/PjJ8A1QeMUIi4onggKoBzaFMmqjiUGY2dAfmWtNpUQNtp9c1fcoM00L5xpdbQYWdLMmaQgpTfVfK2bENg36RUoEXEku9IxJX9BYbbSTf05pvCDsnTVm0Y31WixzbOuc5smVMCpHtAp4HiHGx+Q2okpxKtseS8qpsUAKX5zP3X1saVLXLfLqyG74JOE50hZ+XMQNlfVBJcUjn3kFnyDscUL5v/h7WdA== 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)(376002)(366004)(136003)(346002)(39840400004)(396003)(186003)(8676002)(52536014)(64756008)(55016002)(33656002)(66556008)(76116006)(316002)(7696005)(83380400001)(66446008)(26005)(86362001)(71200400001)(66946007)(4326008)(9686003)(478600001)(5660300002)(8936002)(66476007)(110136005)(53546011)(2906002)(6506007)(54906003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?utf-8?B?Tmx1SFRiaEV2enZJenlVUHo0cC9kUlppaXJ6L3pGNFZsbmRnWFVlekQySUxa?= =?utf-8?B?UEVtZHdjNkY2QlpxSWRSNG9RQnVJUzI2UUtqZy82VGVvb1NGdVhvc245M2gv?= =?utf-8?B?NkoxOEo3aXBWZnJIOXFwL1R3RzJZY0FKTWJURVBJSzlyQTY2SllMV29PeHZq?= =?utf-8?B?Q2xhYWZUclZydk4rUGxva3Qvc0VQVU9aVVJWck4yVWhOenF2Q1ZTMDQ1TWZO?= =?utf-8?B?R0pvSnJ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TB3Qisx?= =?utf-8?B?NTh6Z3Brb1c5QkVQYzJCZENrSnAwWEpVdjdXSENMOS9SNTNlOWdKZTB6U004?= =?utf-8?B?c05jbnRyamVrT2VwdDJ0Rlppb2VFb21OcHlyVDBYU1V1VWZsWUdYakpTMTRm?= =?utf-8?B?R0FCbk1sMzErQ09PNjFsTEhTdzdRTHFHMFg5WlYyYkwwMkl5SzNXdHVtNysz?= =?utf-8?Q?Vyh4ISZIQ4/x8=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: 80c20558-3561-4dd3-4b9f-08d8acbfaf95 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Dec 2020 12:37:35.5969 (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: CZcAK8PxV7TyA/QeHctpOlOo1KYy15wCwjwB9YhneVB49E/O6lA9wvPYx3x76bmthqaA25+8Mg0MfWBah48K89eT6PpnCr0H3seGkoMSK2o= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB4950 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgTWFya3VzDQoNCj4gVGhhbmsgeW91IHZlcnkgbXVjaCwgdmVyeSBnb29kIHN1Z2dlc3Rpb24s DQoNCj4gVGhhbmtzIGZvciBhbm90aGVyIHBvc2l0aXZlIGZlZWRiYWNrLg0KDQoNCj4gZG8gSSBu ZWVkIHRvIHJlLXNlbmQgYSBwYXRjaCB0byBmaXggdGhpcyBwcm9ibGVtLCBvciBtb2RpZnkgdGhl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