]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: gadget: configs: plug memory leak
authorJohn Keeping <john@metanate.com>
Tue, 28 Feb 2017 10:55:30 +0000 (10:55 +0000)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 17 Jan 2018 17:55:25 +0000 (12:55 -0500)
commit37177405c4afb7967cd091946be37ed2c94ff339
tree608d06c9bab876e1e7bbdb8a579dbbb1da506f33
parent1792ffc3256cc910c9a016a763bfe240957c5b9b
usb: gadget: configs: plug memory leak

[ Upstream commit 38355b2a44776c25b0f2ad466e8c51bb805b3032 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
drivers/usb/gadget/configfs.c