public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
* [Bug 219977] New: usb: dwc2: memory leak of hsotg->regset
@ 2025-04-03  8:49 bugzilla-daemon
  0 siblings, 0 replies; only message in thread
From: bugzilla-daemon @ 2025-04-03  8:49 UTC (permalink / raw)
  To: linux-usb

https://bugzilla.kernel.org/show_bug.cgi?id=219977

            Bug ID: 219977
           Summary: usb: dwc2: memory leak of hsotg->regset
           Product: Drivers
           Version: 2.5
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: USB
          Assignee: drivers_usb@kernel-bugs.kernel.org
          Reporter: kakapapa2@gmail.com
        Regression: No

Hi,

In drivers/usb/dwc2/debugfs.c line 790:
https://web.git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/usb/dwc2/debugfs.c?h=v6.13.9

790:
        hsotg->regset = devm_kzalloc(hsotg->dev, sizeof(*hsotg->regset),
                                                                GFP_KERNEL);

"hsotg->regset" is allocated but not be released in dwc2_debugfs_exit().

FYI.
dwc3 was fixed same issue in commit e6bdf8195b4a43ebff71f25fc7ca5e436e79161a.

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

You are receiving this mail because:
You are watching the assignee of the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-04-03  8:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-03  8:49 [Bug 219977] New: usb: dwc2: memory leak of hsotg->regset bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox