Linux-USB Archive on lore.kernel.org
 help / color / 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, back to index

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

Linux-USB Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-usb/0 linux-usb/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-usb linux-usb/ https://lore.kernel.org/linux-usb \
		linux-usb@vger.kernel.org
	public-inbox-index linux-usb

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-usb


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git