From: Mark Brown <broonie@kernel.org>
To: Xiaolei Wang <xiaolei.wang@windriver.com>
Cc: linux-kernel@vger.kernel.org, david@lechnology.com,
gregkh@linuxfoundation.org, rafael@kernel.org
Subject: Re: [PATCH v3] regmap: debugfs: Fix a memory leak when calling regmap_attach_dev
Date: Tue, 29 Dec 2020 14:32:21 +0000 [thread overview]
Message-ID: <160925234119.47920.2670168056681998812.b4-ty@kernel.org> (raw)
In-Reply-To: <20201229105046.41984-1-xiaolei.wang@windriver.com>
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 (size 64):
> comm "swapper/0", pid 1, jiffies 4294937641 (age 278.590s)
> hex dump (first 32 bytes):
> 64 75 6d 6d 79 2d 69 6f 6d 75 78 63 2d 67 70 72
> dummy-iomuxc-gpr
> 40 32 30 65 34 30 30 30 00 7f 52 5b d8 7e 42 69
> @20e4000..R[.~Bi
> backtrace:
> [<ca384d6f>] kasprintf+0x2c/0x54
> [<6ad3bbc2>] regmap_debugfs_init+0xdc/0x2fc
> [<bc4181da>] __regmap_init+0xc38/0xd88
> [<1f7e0609>] of_syscon_register+0x168/0x294
> [<735e8766>] device_node_get_regmap+0x6c/0x98
> [<d96c8982>] imx6ul_init_machine+0x20/0x88
> [<0456565b>] customize_machine+0x1c/0x30
> [<d07393d8>] do_one_initcall+0x80/0x3ac
> [<7e584867>] kernel_init_freeable+0x170/0x1f0
> [<80074741>] kernel_init+0x8/0x120
> [<285d6f28>] ret_from_fork+0x14/0x20
> [<00000000>] 0x0
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap.git for-next
Thanks!
[1/1] regmap: debugfs: Fix a memory leak when calling regmap_attach_dev
commit: cffa4b2122f5f3e53cf3d529bbc74651f95856d5
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
next prev parent reply other threads:[~2020-12-29 14:33 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-29 10:50 Xiaolei Wang
2020-12-29 14:32 ` Mark Brown [this message]
[not found] ` <d516efdd-7e66-13fe-3798-cdea5ff012dc@web.de>
2020-12-30 10:14 ` Wang, Xiaolei
[not found] ` <d463ff8b-306d-6f40-9115-1595d69edc95@web.de>
2020-12-30 12:37 ` Wang, Xiaolei
[not found] ` <932c5921-9ad3-e37b-5f31-4de69fa0ca8b@web.de>
[not found] ` <81f33869-32f6-650f-0f06-e2a5dce57236@web.de>
2021-01-04 14:17 ` [PATCH 1/2] regmap: debugfs: Delete a misplaced pointer check in regmap_debugfs_init() Greg Kroah-Hartman
[not found] ` <1503f5fa-1ad6-7675-6e02-6dc1eb04c1de@web.de>
2020-12-30 12:50 ` [PATCH v3] regmap: debugfs: Fix a memory leak when calling regmap_attach_dev Greg Kroah-Hartman
2020-12-30 13:39 ` Mark Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=160925234119.47920.2670168056681998812.b4-ty@kernel.org \
--to=broonie@kernel.org \
--cc=david@lechnology.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rafael@kernel.org \
--cc=xiaolei.wang@windriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®