[Bug 219977] usb: dwc2: memory leak of hsotg->regset

[email protected]
Newsgroups org.kernel.vger.linux-usb
Message-ID <[email protected]/>
https://bugzilla.kernel.org/show_bug.cgi?id=219977

Wei Huang ([email protected]) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Wei Huang ([email protected]) ---
Hi kakapapa2,

Thanks for reporting this. A fix has been submitted to the linux-usb mailing
list:
https://lore.kernel.org/linux-usb/?q=huangwei%40kylinos.cn

The fix mirrors the equivalent dwc3 fix (commit e6bdf8195b4a) by
switching hsotg->regset from devm_kzalloc() to kzalloc() and freeing
it explicitly in dwc2_debugfs_exit().

https://lore.kernel.org/linux-usb/[email protected]/

-- 
You may reply to this email to add a comment.

You are receiving this mail because:
You are watching the assignee of the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.