]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: gadget: configs: plug memory leak
authorJohn Keeping <john@metanate.com>
Tue, 28 Feb 2017 10:55:30 +0000 (10:55 +0000)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 6 Mar 2017 14:45:57 +0000 (16:45 +0200)
commit38355b2a44776c25b0f2ad466e8c51bb805b3032
tree245e0b77619761f6cd8a1f33a07eca27d69b8a42
parent5bbc852676ae08e818241cf66a3ffe4be44225c4
usb: gadget: configs: plug memory leak

When binding a gadget to a device, "name" is stored in gi->udc_name, but
this does not happen when unregistering and the string is leaked.

Signed-off-by: John Keeping <john@metanate.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/configfs.c