diff options
author | Zhang Qilong <[email protected]> | 2020-11-17 10:16:29 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2020-11-20 16:32:46 +0100 |
commit | 87bed3d7d26c974948a3d6e7176f304b2d41272b (patch) | |
tree | bb14545a03676673a3986f94722a55ed03b0a273 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | e7694cb6998379341fd9bf3bd62b48c4e6a79385 (diff) |
usb: gadget: Fix memleak in gadgetfs_fill_super
usb_get_gadget_udc_name will alloc memory for CHIP
in "Enomem" branch. we should free it before error
returns to prevent memleak.
Fixes: 175f712119c57 ("usb: gadget: provide interface for legacy gadgets to get UDC name")
Reported-by: Hulk Robot <[email protected]>
Acked-by: Alan Stern <[email protected]>
Signed-off-by: Zhang Qilong <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: stable <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions