diff options
author | 2020-08-14 07:55:01 +0200 | |
---|---|---|
committer | 2020-08-17 13:35:22 +0300 | |
commit | 07c8434150f4eb0b65cae288721c8af1080fde17 (patch) | |
tree | dee3d3cc90f583f43694a7cf91f7227acfeb0c57 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 5.9-rc1 (diff) | |
download | wireguard-linux-07c8434150f4eb0b65cae288721c8af1080fde17.tar.xz wireguard-linux-07c8434150f4eb0b65cae288721c8af1080fde17.zip |
usb: gadget: f_tcm: Fix some resource leaks in some error paths
If a memory allocation fails within a 'usb_ep_alloc_request()' call, the
already allocated memory must be released.
Fix a mix-up in the code and free the correct requests.
Fixes: c52661d60f63 ("usb-gadget: Initial merge of target module for UASP + BOT")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions