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

2020-12-29 Thread Greg KH
On Tue, Dec 29, 2020 at 09:16:17AM +0800, Xiaolei Wang wrote: > Fixes: 9b947a13e7f6 ("regmap: use debugfs even when no device") This line goes down next to your signed-off-by line in the changelog please. thanks, greg k-h

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

2020-12-28 Thread Xiaolei Wang
Fixes: 9b947a13e7f6 ("regmap: use debugfs even when no device") 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 (si