linux-usb.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC 0/4] USB: UDC: Fix memory leaks by expanding the API
@ 2020-07-29 20:22 Alan Stern
  0 siblings, 0 replies; only message in thread
From: Alan Stern @ 2020-07-29 20:22 UTC (permalink / raw)
  To: Felipe Balbi
  Cc: Roger Quadros, Peter Chen, Anton Vasilyev, Evgeny Novikov,
	Benjamin Herrenschmidt, USB mailing list

This series fixes some long-standing memory leaks in the net2280 and 
net2272 drivers.  Along the way it expands the UDC/gadget API and 
addresses a stale pointer issue.

The real problem in net2280 and net2272 is that they need to do a bunch 
of cleanup operations using their private data structure after the 
gadget has been unregistered but before it is deallocated.  The current 
API does not offer any way to do this, nor any way to perform setup 
operations after the gadget is initialized but before it is registered.

Patch 2/4 fixes this by enlarging the API.  Using this new 
functionality, fixing the issues in the two UDC drivers is easy.

The stale pointer issue (patch 1/4) is related to the matter of 
re-registering a gadget multiple times, which is the subject of a 
separate email thread.

Alan Stern

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

only message in thread, other threads:[~2020-07-29 20:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-29 20:22 [PATCH RFC 0/4] USB: UDC: Fix memory leaks by expanding the API Alan Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).