Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp8372922pxu; Sun, 27 Dec 2020 04:21:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZ28y5vHFCJQI/LfNatIEWL3Rn/kEt8ep3AG9HvI2w2aL650vkTBuObRTUBRbn29tP4KAL X-Received: by 2002:a17:906:adcb:: with SMTP id lb11mr37204377ejb.346.1609071697660; Sun, 27 Dec 2020 04:21:37 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1609071697; cv=pass; d=google.com; s=arc-20160816; b=kGgbaSTHDeAnDaOTWny8pmglKQlEZYId/wDtoSiAhLHPrB49hbHK44BvcuRwy8uheW tHe/sG8BSEE2wpVdG7oJmK2uo0o2J+IwlXSbzwecBFsfoeIHWt9hGv3L8P2nTjCEGqrY qm9GKYmXgMQUl0esTIFF0tQZBpeb5v93FSAcnGkRTAzc6WB5bJ5zDwrs+hPnobAOypo0 lk9F5QCr0p4fGiq7w1okwzmHRelqfamUrXW7BmQWUSQyk4MJufigNEFBfr1GKETEm627 uE7DKoZ8OKxdLlkGIrV1frCc5L/8UVjX+MY0kCnDqb17j2STJVyEnAcd74E02/OacZeD AvqQ== 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=P70vTScefYtgL2fAJ/vLjg1f8vTGRyR4dwKF+jHkT5g=; b=EjFeNjQMZY/pmJOToKjXtYX+TW758EtqP9OvXBcreMkLJdyik/lyLz6Zl1xDHGwHlL e1p7jLaceOtE5A/auZyb+lY0qmy2Sndt82/CatEePIgw8/fduHCkMEJHvalOOY6eCw9w r3KZ2i0WK92BreTzUj/o6g1LaDak/TaVKBaHiE6ugYWbDm0LTN+VKAYLRbW2QoIGPUtO etJOy8voF8hAsL8Vui092h3jMufvvxSB0/V40keDsxH31E9OeBa78cdo3uPrgnjQJ99c XZnZ/phxyNFeWOI6GiTAUWKN0hq99wxvLhhHOnVY7k5ruM4h6vYpH1Xp/INY+mKaA67S 0oLQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@windriversystems.onmicrosoft.com header.s=selector2-windriversystems-onmicrosoft-com header.b=WKPVcQXZ; 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 hr23si16841794ejc.111.2020.12.27.04.21.02; Sun, 27 Dec 2020 04:21:37 -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=WKPVcQXZ; 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 S1726117AbgL0MT1 (ORCPT + 99 others); Sun, 27 Dec 2020 07:19:27 -0500 Received: from mail-eopbgr700088.outbound.protection.outlook.com ([40.107.70.88]:16402 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726039AbgL0MT0 (ORCPT ); Sun, 27 Dec 2020 07:19:26 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QMgu3QSTm/Uc8uXREuarb6nDcWwQsoXPWeN6locdvGii6MSbp8gnQEUUgqCAC2bBlbtULw708GeVbFsl/VRe6I+0bJ/JK+wFktQGhfW08Kh16t9hFsK0PgkfIL8Phug1hGkNBpcnEYBFDOybmKg3C/SsQj0gd50Rsvzi4KsgSjv6cfiF7LuvC8LQbTNsFTInZ+KBOm3F1yh09DkMcC8cB6s7GfHksMF/EPHAHl7YBfzqvGLd2UQBUWdCo6osZMDKAchIgRB97Pg5sAUpF4idAJpriVNk2CHzsDw/+cHFx9cnvqocQ9y3LSG+RbcBAC0v+pk2sokskf3zU5RYpLHt5w== 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=P70vTScefYtgL2fAJ/vLjg1f8vTGRyR4dwKF+jHkT5g=; b=TPf6Xt4VKghW62Eesd7rjbgTeBT4WHLN2t2Jwfhb4X/WBtQFpb6T/ONdngnIsXZNOO76vFKPHlHgBrMbjIxC0+RfhnvNI+8nlE1ohyn9vgCIKZHZQKF+2n591q0G/dq9yD6l2L2ChZHBW+g+J48pq2xBFirNSKuAmgEZjkQH6HAr4kN6BzJNhZREnR+guheWZnGK62EjJiO1CK99ioVWKo9Hs1xeAvhQYDbmb21D9jwAr6fo0DDBtxQNiVUcMpvJ0XLmBr8fzi6j4IylVvALgAMitjF7Xmbn47faKeODmRNwvotuhfv+Zn+sglGINaUWeLpFC4S6TaTHe0jillIhGQ== 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=P70vTScefYtgL2fAJ/vLjg1f8vTGRyR4dwKF+jHkT5g=; b=WKPVcQXZdWUE3qDcdQxcs5QfZ/hbMuCND1sJGWdz0H17VG17zI3LPYzA0RywEW8gxofuZVNP6o5V+azruGWxhqSQXagx+lb8r4Dqt+MJ/FlmrYrrUMxqhq852qR77E5zLgt7FcH3g5CIKsiPZd96MdiTJqrOO06kofHOxLd/SLA= Received: from PH0PR11MB5077.namprd11.prod.outlook.com (2603:10b6:510:3b::17) by PH0PR11MB5096.namprd11.prod.outlook.com (2603:10b6:510:3c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3700.29; Sun, 27 Dec 2020 12:18:16 +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; Sun, 27 Dec 2020 12:18:16 +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: [PATCH] regmap: debugfs: fix a memory leak when calling regmap_attach_dev Thread-Topic: [PATCH] regmap: debugfs: fix a memory leak when calling regmap_attach_dev Thread-Index: AQHW2rkvRF8s09LoMU2+gWDmIMyIv6oJba8AgAFr8qA= Date: Sun, 27 Dec 2020 12:18:16 +0000 Message-ID: References: <20201225122613.3810458-1-xiaolei.wang@windriver.com> <737e8b89-5748-2ef5-5294-8e65421931b9@web.de> In-Reply-To: <737e8b89-5748-2ef5-5294-8e65421931b9@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: 543ae2fc-6fc0-47cd-adfc-08d8aa617d80 x-ms-traffictypediagnostic: PH0PR11MB5096: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:115; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: CbxV6CLRtPnTU5UZgYZ9K8zHFSP0CvhBDgwmCg6Xoxx7S1LpS+5Q9dYNN76NlOV6k8MW3cgbCkwh9UrbyzeCeSLq6ChcsBHjUwn5oSNu6Pq3GmEBZ6qVXbKdpTTo1KtQSyz7ZfF8O2yCe+E1TcHa60NO9gzilntNNdczq9cWxiD/gnYkL1hirOoh2a/m95AgF/a4qbW8A554owKGqDn8kG1Pj4bWkfTsuTq/LRw9JJnHC0xWbpdSiBdjvaxqVIsfqkvpYtFZ8ekh+EAgB8CvzoXgefaWpOpnnG2YcUWgUWPnxyRKPuOpcSjx97Z7grefv3uuAVJAF7hhShDjTMEwG23kW2sZyAzvW98EWgLkoZDcI3XkwBIXt8ogSJd+lGv7S49Zha3BhrPKHjQ6Sk89hA== 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)(396003)(136003)(346002)(376002)(39830400003)(366004)(4326008)(8676002)(66446008)(86362001)(66476007)(66556008)(52536014)(64756008)(66946007)(8936002)(33656002)(26005)(71200400001)(55016002)(2906002)(53546011)(76116006)(6506007)(5660300002)(110136005)(54906003)(316002)(7696005)(9686003)(186003)(478600001)(83380400001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?utf-8?B?ZjJoRVMyUDZMd0ZzR1pzUWpic0N4K3QwWVRhS2lOUHozZkJEQjlEb053eXU4?= =?utf-8?B?alhmSklTSmlzc3ArZkFvdU0vRExrL2M2TElEZWF1c0dSTnZMTXZ1Smc0Z1R5?= =?utf-8?B?Y05PdWt4MkJBb3BJcGVNd1IwSEx3aURRWEdydVJZNzdPcVpjZm1tNXlnemZs?= =?utf-8?B?QnNTNXl4bnJadDFLcl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?utf-8?B?bEl2bjNoWG1XLzlTTXdyN3RQWkFOcjk3Y2puU0ZoQlh5Qk9uVjVuamdRK2Iy?= =?utf-8?B?TGUwckl2bzZYa0hQT1NQdUVEMmlNdDlLelNQaXBsYzBXdUxzZzcrU1VTL2JC?= =?utf-8?B?ZS9YVUkySXg5Y0JoTy9hODlpZklTOHZ5a1JEc2RySHpmeTJrM2xrVnBEVnov?= =?utf-8?B?V2pVbk1tR01pU3laMUlMMXJKWWNBSUFRRWx5RXVUM1k4cWlvci9xTnd1akxL?= =?utf-8?Q?/4+wVHkbmlphA=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: 543ae2fc-6fc0-47cd-adfc-08d8aa617d80 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Dec 2020 12:18:16.5407 (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: vwh+wdQeW5nYJHKKmPKWqKxuCXYotnwljHk0bShp1Mv0m7i3XLa8i116/28UzqKiXAGFOIHCQ7MLR870Nzlx1ZiOtrBexsubENKYUkaqdE0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB5096 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgTWFya3VzDQoNCj4gVGhpcyBzaG91bGQgYmUgY2F1c2VkIGJ5DQo+IGNvbW1pdCA8OWI5NDdh MTNlN2Y2PiAoIjxyZWdtYXA6IHVzZSBkZWJ1Z2ZzIGV2ZW4gd2hlbiBubyBkZXZpY2U+IikNCg0K PiBJ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