Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp8743589pxu; Sun, 27 Dec 2020 18:29:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxRXCIfbYFiWz1/GmCmBOPWLScvqzLcC7nEFa2q0pqmaCYXUFnUaLa4nkf9qVyhHoiB2DaK X-Received: by 2002:a05:6402:a5b:: with SMTP id bt27mr40998126edb.222.1609122555652; Sun, 27 Dec 2020 18:29:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1609122555; cv=pass; d=google.com; s=arc-20160816; b=Ha1UKMF6uuVXRfEuFT4R7t1X1mLrivVEr/gRAPbNvPqgqtMp4eM63qeyhPIn63jfxs XkFHHx8bXVMlTiLPtr7sgFR00ss+EtLJn4C5er8Anb+ygejG7viZH5Z1oYwtl9cHJH+k Fu2bvy5pJgEB+761PH+8yUyIrXUq+FApuLrQ1QZNcoi4B8DipkQBoFaAf7GdxPB44nzX RuejCbOOBs29Hi1XXsKMbA+tpQVvFiZUvw3Zd6YRoqe1UHUpxlqjRiepS/Y/3BH7z6fq o327GMZcH2OupysvFGfzl9JqJpkyhbtpxy6dBM52VagEmjtlVMQ2Vmb2YWJUJLHk7owp vRhQ== 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=UmTw8oRXUbAxtF9pb6Wd+PZPTItr25m1I3ov3ITtD4o=; b=qgrALv3PLkqaM6ySSjt0/f2xBfR0w/5g1LqbWI6VjQHcbL4kkwyoa4+HuOuk1Jedci NBxvqOgsRPmjVBTxu9224kYa7ruHqVpd+KHDI2zm7QSI626nzL2qkBkptE0tXwaPLToE RUhhmrHp0v7O4jrdOw/dgp5uP6AegG/uc7pv7ncrFG1T0SkGyS0ciD/x4bOWgukhCFwK vnB4E+iZLWGtqWb+1cfkJfh7VECNg8Yu0JC65SGK577TY1ewc/vS9uMJPIwoNw6JAa4E 35sR9iO5G8hBelN839kIIx8HkNv85Y2LqCwAxgMcqanOKJKu35Jf7gvBiwNhp3rCwOyb f5Tg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@windriversystems.onmicrosoft.com header.s=selector2-windriversystems-onmicrosoft-com header.b="Ndoj/HvI"; 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 t6si17338864ejr.116.2020.12.27.18.28.49; Sun, 27 Dec 2020 18:29: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="Ndoj/HvI"; 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 S1726360AbgL1C1X (ORCPT + 99 others); Sun, 27 Dec 2020 21:27:23 -0500 Received: from mail-bn7nam10on2040.outbound.protection.outlook.com ([40.107.92.40]:21536 "EHLO NAM10-BN7-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726286AbgL1C1W (ORCPT ); Sun, 27 Dec 2020 21:27:22 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Oa5rkMMofV+jBdEY1avxOu8yQs1BLJeoRYoVrpPPAbo/XYCh3pPEISoIkUhQhurZvLBXZ0P/AYboxZDYHNCJmB4jy/s4T66unXEtEfig0FjjOFx4BQsPIOX9Xus3kGAMqVoxcfnM0tw2VkQqcppe6I4wDEkrsXVRsWblyPAKUECKPaYyLRhG/ED9yzC5H/fI4NacQ62n3wB79bc42kOCwYypfps/tahLu8m7j1C7YWGvz5W4vh5V/ypFrNeJIY6TbU9iQ9oKvWjwJ0/ZDsj65OTH+2IaJNfasg5YW3adKoINutf2pK26B+3nK5sOPY46aB6JeFUJd9oS8REV+e92Uw== 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=UmTw8oRXUbAxtF9pb6Wd+PZPTItr25m1I3ov3ITtD4o=; b=lox8W2DzAgHB9MB3x0JPQWmBYsu5CWAKM3QjtXzkN1a7QVjag91fX+lMxSD8oBN+jNPxSkRJywaBvA8lSWw12QNSQLteRzjoHJxwj/tybCoHH01fT5V9QkTbvmjk/notZT6dKtU0fmL+Ho7g6BOk/70GlunYmMZb9PG7MJSRIEyzum5H7Pf0OBTDVLu7xQPU/XycDpSb/ryibkXI/kHO0afT77qZLLN+9YOjwSdLXf3/U2Iywaa8VKSVCIdJ8STo+bWufNtC1FqTYxThDdY1ZGZLSNRgHp3KFl128KcX/gc+n70St50Mxr+8MB6YxJA1hF00NS3mTITK1xPTbz7GwQ== 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=UmTw8oRXUbAxtF9pb6Wd+PZPTItr25m1I3ov3ITtD4o=; b=Ndoj/HvIUE71ha+JzHi6anEzk38i1AuembX/pg685sfvypbS5JC+TTculaffaS4mXWCQAG1dcwLrVMTQ99y0Mk/bfgcokeSbjN7aGK6GuyuoX1CRiF9d4NFank0xFD1mSHqGPeyxwW2gma7KXEUcHLMSxmoHBQS+obBJhn9JrxE= Received: from PH0PR11MB5077.namprd11.prod.outlook.com (2603:10b6:510:3b::17) by PH0PR11MB4997.namprd11.prod.outlook.com (2603:10b6:510:31::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3700.28; Mon, 28 Dec 2020 02:26:33 +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; Mon, 28 Dec 2020 02:26:33 +0000 From: "Wang, Xiaolei" To: Markus Elfring , "kernel-janitors@vger.kernel.org" CC: "linux-kernel@vger.kernel.org" , Greg Kroah-Hartman , Mark Brown , "Rafael J. Wysocki" Subject: RE: regmap: debugfs: fix a memory leak when calling regmap_attach_dev Thread-Topic: regmap: debugfs: fix a memory leak when calling regmap_attach_dev Thread-Index: AQHW3FXcaMlV7254xkKXhXYYZYHhsqoLuDnQ Date: Mon, 28 Dec 2020 02:26:33 +0000 Message-ID: References: <20201225122613.3810458-1-xiaolei.wang@windriver.com> <737e8b89-5748-2ef5-5294-8e65421931b9@web.de> <46e289a6-49ab-a627-dab1-56a8b0587c08@web.de> In-Reply-To: <46e289a6-49ab-a627-dab1-56a8b0587c08@web.de> 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: 4e310323-793f-4f90-b2c4-08d8aad7fe7e x-ms-traffictypediagnostic: PH0PR11MB4997: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2150; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Jgb0NTL3jG1T7KmDtNdOqZgPiVMKQnrRkr7AbElDuVjxSsqc/XiM2x+g0dVhpqqEoHUWTn+Za53jZpjLSDmE6IW9xQnqx8Fyy6BOoFEtmDSvI74bCyBqzBFkB4VaxwGbSQkZ7IVuUacPS/WzRDaCU+NyXsf0jn2Uncf6TJk9fywPwjCJQ0Jc/a8VQ3eHvL9ucMbHgct0f2FsYyCcCKO34V4oViSMk7QrtloVGPxRKrYgkbB7HIxOs+Tn5boqNOdpe2hTM5DnOOD0CiWbLKPXV5L0beG6sqL95qPiyrC7sbIsub6lLc3e4njdCf49LUA/3ZcK+xI5ibumzGwPzXjaJTCDlyQHfenXt4NOLo8pAwNbbVkXiA7hgAxVhtNUG595qeftPfdNILEprE2Mwxw66MHwwLqekBKfLfAYiqZIyZtu3hvA3JHXq7nTOCoiUrvAB3Cs6wCyiPFgiUx13dqFYw== 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)(136003)(376002)(396003)(39840400004)(366004)(346002)(9686003)(478600001)(2906002)(66556008)(71200400001)(53546011)(66946007)(6506007)(76116006)(66476007)(8676002)(66446008)(26005)(86362001)(64756008)(55016002)(54906003)(8936002)(4326008)(5660300002)(7696005)(186003)(33656002)(83380400001)(110136005)(52536014)(966005)(316002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?utf-8?B?V1NIUHptQ3M2cTZGVkZBVS9nUmVXSjJFQllzSkFFT2lwNSsxbXVwRjJYYVFE?= =?utf-8?B?Y3RSTm43dG12Zk1ocVRCOEF5RnROQUtHT2ZBRWh3Sll0TWpDb0cvM1R1Nm4y?= =?utf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XN5aXNpZDM1alFw?= =?utf-8?B?dW45K0NhOXBqY2k3bGZheVUyaGFwVTBRbTJWd1ZBejlMQmM0UVBwQ0NtVlJ2?= =?utf-8?B?ejVYN29iVGU2ejJtaGFTNXFiN2RjakxDbzhyYjVhNENEbzJ3TGFHdXNRYjhq?= =?utf-8?B?Q0Vibm1sRmdGVjBIaTJDdnl0aElDbnQ3OWJRNVFZaGlhbUpYZ3NPVmxqd1Uy?= =?utf-8?B?cnBkZ1cvakhhQUw0RnFQTEhOelpVdVMyTmxaRTM5cGZwRVplS1BkRlRUVzY5?= =?utf-8?B?bXUxQy9naUFoZjhMaWFaYzR6WE0zS09GV0t6eFEvOWlSeXlHemFnZTVjNmlO?= =?utf-8?Q?3LSMozf43fSUA=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: 4e310323-793f-4f90-b2c4-08d8aad7fe7e X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Dec 2020 02:26:33.5878 (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: 7C4XWPJ2YbrYnDbUWE8WHIeX1eOmxvqxqznVqgz887i8i3sp8rW6V4Gh41i40bSgsKJSI+6hk5F9lmitHnGsJ1t9kiCN0pyBlzllTI4l6j8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB4997 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PiBEbyB5b3UgbWVhbiBzbz8NCj4NCj4gY29tbWl0Og0KPiAgICAgICAgICA5Yjk0N2ExM2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