Re: [PATCH v3] regmap: debugfs: Fix a memory leak when calling regmap_attach_dev

2020-12-30 Thread Mark Brown
On Wed, Dec 30, 2020 at 10:14:22AM +, Wang, Xiaolei wrote: > Hi Markus > > Thank you very much, very good suggestion, do I need to re-send a patch to > fix this problem, or modify the previous patch and send it again? Please feel free to ignore Markus. signature.asc Description: PGP signat

Re: [PATCH v3] regmap: debugfs: Fix a memory leak when calling regmap_attach_dev

2020-12-30 Thread Greg Kroah-Hartman
On Wed, Dec 30, 2020 at 01:01:42PM +0100, Markus Elfring wrote: > > Thank you very much, very good suggestion, > > Thanks for another positive feedback. > > > > do I need to re-send a patch to fix this problem, or modify the previous > > patch and send it again? > > Please convince the involve

RE: [PATCH v3] regmap: debugfs: Fix a memory leak when calling regmap_attach_dev

2020-12-30 Thread Wang, Xiaolei
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 > Thank you very much, very good suggestion, Thanks for another positive feedback.

RE: [PATCH v3] regmap: debugfs: Fix a memory leak when calling regmap_attach_dev

2020-12-30 Thread Wang, Xiaolei
Message- From: Markus Elfring Sent: Wednesday, December 30, 2020 5:49 PM To: Wang, Xiaolei ; kernel-janit...@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 me

Re: [PATCH v3] regmap: debugfs: Fix a memory leak when calling regmap_attach_dev

2020-12-29 Thread Mark Brown
On Tue, 29 Dec 2020 18:50:46 +0800, Xiaolei Wang wrote: > After initializing the regmap through > syscon_regmap_lookup_by_compatible, then regmap_attach_dev to the > device, because the debugfs_name has been allocated, there is no > need to redistribute it again > > unreferenced object 0xd8399b80

[PATCH v3] regmap: debugfs: Fix a memory leak when calling regmap_attach_dev

2020-12-29 Thread Xiaolei Wang
After initializing the regmap through syscon_regmap_lookup_by_compatible, then regmap_attach_dev to the device, because the debugfs_name has been allocated, there is no need to redistribute it again unreferenced object 0xd8399b80 (size 64): comm "swapper/0", pid 1, jiffies 4294937641 (age 278.59